Hi y'all!

I'm trying to get the <https://github.com/andreaferretti/interfaced> macros to 
work with the latest nim devel version. I got rid of the deprecation warnings 
and replaced all "RootRef" with "pointer" as suggested here: 
<https://github.com/nim-lang/Nim/issues/20016>

The modified fork is here: <https://github.com/sdickreuter/interfaced>

It works when I take the generated output from the macros (`echo result.repr`) 
and put it above the examples, as in this file here: 
<https://github.com/sdickreuter/interfaced/blob/master/test_expanded.nim> This 
compiles fine (`nim --run compile test_expanded.nim`).

But if I try to compile the original test (`nim --run compile test`), I get 
this error: `/home/sei/git/interfaced/interfaced.nim(54, 20) Error: internal 
error: environment misses: this`

I'm a bit in over my head with this, so hopefully someone here knows how to fix 
this.

Reply via email to