Ok, i've played much with templates and macros and still don't understand it well. It's better to start from very simple things and even here I need your help. I'll express the idea in a non-compilable code. Would you please correct me?
E.g. If I want to declare classes like this:
How can I adjust the following code or do I need a macro?
Actually solved: http://penguins-diary.blogspot.com/2012/06/nimrod-macro.html
but "nimrod doc" command does not generate info about the classes defined by macros :(
@exhu
thanks for your example. It helped me to get started with nimrod macros. I changed your code a little, so that it works with the new ref object type and more than one line of member variables:
https://github.com/AdrianV/nimrod-tools/blob/master/oopExample2.nim
@adrianv
Thanks! Glad it was useful not only to me.