I don't fully understand it for sure but my impression is the contents of the 
big second-to-last box on this page:

> [https://nim-by-example.github.io/oop_macro](https://nim-by-example.github.io/oop_macro)/

is supposed to build, run and produce output as shown in the last box on the 
page.

Instead, I get this:

> $ make nim compile --run --verbosity:0 t2.nim Hint: t2 [Processing] 
> t2.nim(185, 7) template/generic instantiation from here t2.nim(189, 40) 
> Error: undeclared identifier: 'this' make: *** [Makefile:5: build_and_run] 
> Error 1 2 $

In general how stable/usable is nim metaprogramming? I'm interested in using it 
to automatically generate database backing for types in a new project.

Thanks, Britton

Reply via email to