I am trying to write a class macro, and I have encountered a problem with '*'. I want a macro with a syntax like this:
class TestClass*:
...
but if I try to apply an export marker as in the example, I get "Error: expression expected, but found ':'". The only workaround I have been able to think up is with a pragma or by forcing inheritance like so:
class TestClass {.public.}:
...
class TestClass* of RootObj:
...
Is there maybe a smarter solution anyone can think of?It would have been nice to at least have some attribution of that code, since it was my work. But oh well, MIT license and all, so no harm done on the author's part. It's nice to see my code being used though :) I worked so hard to get it to work!
Here's the original: https://github.com/jyapayne/nim-extensions/