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

fix manual for .nosideeffect #16781

Merged
merged 1 commit into from
Jan 22, 2021

Conversation

timotheecour
Copy link
Member

@timotheecour timotheecour commented Jan 21, 2021

this enables for eg procs like sort to be func, yet still allow passing in callbacks that may have side effects; if the callback does have side effects, the resulting proc would then not be usable inside a nosideEffect context.

future work

  • clarify effects through proc params for other annotations besides .nosideeffect

@Araq Araq merged commit 8f62cd5 into nim-lang:devel Jan 22, 2021
@timotheecour timotheecour deleted the pr_close_16303_doc_func_param branch January 22, 2021 21:01
ardek66 pushed a commit to ardek66/Nim that referenced this pull request Mar 26, 2021
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.

func doesn't check for side effects in proc parameters
3 participants