I'm still getting confused about the do notation. In particular I'm surprised
that the following gives an error "redefinition of x":
import future
proc takesFunc(f: () -> void) =
f()
takesFunc do:
var x = 1
takesFunc do:
var x = 1
Th
Ok, will do. Thanks!
How do I do this? I'm currently trying to write a macro that will ensure that a
block references some or all of the members of a certain enum type. A 'case'
statement can't always be used for this purpose.
@yglukhov I was thinking the same thing.
As a side note, should not byCopy be an argument attribute instead of being a
type attribute? And should not it be the default for importc procs?
That is a c2nim bug, it should add `.bycopy`.
Hi!
This is bordering on spam. Please explain what your trying to 'configure'.
Have you installed Nim:
[https://nim-lang.org/install.html](https://nim-lang.org/install.html)
Adding the bycopy pragma fixed it. I must say, that's a pretty subtle
requirement and it could do with a more prominent place in the documentation of
the FFI.