> If all of your procs are going to look like newFooBar above there, it's 
> possible to generate with a macro.

Yes, it's exactly what I'm looking for. A way to generate several procedure 
that follow a pattern.

I've been trying my hand at writing macros that generate proc but there is a 
lot to unpack regarding the Nim macro system, it's not as intuitive as the rest 
of the language :).

I'll look into your solution since I may need to adapt a few things (I've 
simplified the real uses cases to summarize it into a single problems).

Thanks everyone for the help ! 

Reply via email to