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

Add local to for outer description #29010

Merged
merged 1 commit into from
Sep 6, 2018

Conversation

bkamins
Copy link
Member

@bkamins bkamins commented Sep 2, 2018

for outer statement works only with local variables. This PR clarifies it in docs and error message.
The reason for this clarification is that users cannot use for outer with a global variable (and when doing copy-paste of code from local scope to global scope they do not understand why it fails).

@DrKrar
Copy link
Contributor

DrKrar commented Sep 2, 2018

This is good clarification.

@JeffBezanson JeffBezanson merged commit bda5dd8 into JuliaLang:master Sep 6, 2018
@bkamins bkamins deleted the outer_local branch September 6, 2018 19:28
KristofferC pushed a commit that referenced this pull request Sep 10, 2018
@KristofferC KristofferC mentioned this pull request Sep 10, 2018
KristofferC pushed a commit that referenced this pull request Feb 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants