Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would this proposal include extern "ABI" qualifiers as effects? #53

Open
eikopf opened this issue Feb 23, 2024 · 0 comments
Open

Would this proposal include extern "ABI" qualifiers as effects? #53

eikopf opened this issue Feb 23, 2024 · 0 comments
Labels
question Further information is requested

Comments

@eikopf
Copy link

eikopf commented Feb 23, 2024

If you consider the extern "ABI" { ... } as describing a particular (foreign) function color, then it seems fairly natural to model them in an effect system. Would this be in scope for an effects system?

There are some (possibly useful?) identities that show up, like extern "C-unwind" = extern "C" + panic (glossing over the differences between Rust panics and C++ exceptions), or in particular how extern "Rust" is just the set of ordinary Rust function effects. In return, this would presumably add more complexity: how do variadic extern "C" functions factor into this? Is it even possible to define e.g. extern "C" in terms of a set of primitive effects?

@eikopf eikopf added the question Further information is requested label Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant