Hi,
As an experiment, I currently port the neko virtual machine from C to nimrod. I now have the problem that I need several procs from one module in another and vice versa. To do this I use following scheme:
# mod1
proc p1*()
...
import mod2
proc p1*()=
p2()
#mod2
proc p2*()
import mod1
proc p2*()=
p1()
but I get an error: internal error: still forwarded: test1
Is there an easy solution other than throwing all in on module or split it up to include files ?
As an experiment, I currently port the neko virtual machine from C to nimrod.
Awesome.
but I get an error: internal error: still forwarded: test1
Ugh, internal errors are bugs, so please submit a bug report ... I'm however not suprised it doesn't work ... It's been years since I tested this feature and apparently not part of the test suite ...
Is there an easy solution other than throwing all in on module or split it up to include files ?
No... :-/ Well you can rethink your design and get rid of the cycle in your dependencies. For some particularly nasty dependencies in the compiler itself I used proc vars as a workaround.