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

Support funcs #58

Closed
tersec opened this issue Nov 20, 2019 · 1 comment
Closed

Support funcs #58

tersec opened this issue Nov 20, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@tersec
Copy link
Contributor

tersec commented Nov 20, 2019

Currently, it throws an error:

nim-beacon-chain/vendor/nim-chronos/chronos/asyncmacro2.nim(161, 12) Error: Cannot transform this node kind into an async proc. proc/method definition or lambda node expected.
@tersec tersec added the enhancement New feature or request label Nov 20, 2019
@cheatfate
Copy link
Collaborator

cheatfate commented Nov 27, 2019

@tersec func is procedures without side effects (this means that the proc/iterator only changes locations that are reachable from its parameters and the return value only depends on the arguments).

But every {.async.} transformed procedure adds callbacks to thread-global system queue, so it exactly perform side effect. So its impossible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants