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

Compiler error message for endpoint objects in sequence local #45

Open
bmistree opened this issue Jun 26, 2013 · 0 comments
Open

Compiler error message for endpoint objects in sequence local #45

bmistree opened this issue Jun 26, 2013 · 0 comments

Comments

@bmistree
Copy link
Owner

We disallow passing references to endpoints in sequence local variables. This is because an endpoint object is fundamentally a reference to an endpoint (ie, it can't be made into a value type) and it does not seem like a good idea to leak references across the network (what happens if connectivity between the host holding a reference and the host hosting the data that the reference points to goes down?).

However, the compiler doesn't actually throw a syntax error when a program using an endpoint as a sequence local variable is generated. Instead it asserts out during runtime with a very cryptic error message. Should fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant