-
Notifications
You must be signed in to change notification settings - Fork 10
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
Support multiple @local
statements
#98
Comments
No, this is not the same, as it has nothing to do with |
Actually, this is not a bug because we clearly document that multiple
However, I don't remember if there was a good reason for it or whether we should try to support it (one thing that comes to mind is name clashes). I'll convert this issue into a feature request. |
@local
calls@local
statements
|
Right, sorry - it did not occur to me I can also check the docstring of the macro. :) |
Hey.
First of all, just upgraded to 0.5 and the improvements in code clarity thanks to the macro shorthands are awesome!
While translating my code, I tried inserting multiple local variables in a similar manner:
which throws an error:
Wrapping both calls in a
@local begin ... end
block fixes it, but since documentation does not mention it and there are no examples, it might be good to either fix it or include it in the docs.(though I see e.g. that Trapezoidal Integration example has multiple calls to
local
that work - is this equivalent to the macro?)The text was updated successfully, but these errors were encountered: