At the very least, you can dispatch with macros at compile time. Not sure about
the template issue.
macro tmpl*(args: varargs[untyped]): untyped =
if args.len > 0:
result = quote do: foo
else:
result = quote do: bar
- How to count varargs[untyped] inside of template? r3d9u11
- Re: How to count varargs[untyped] inside of template? mratsim
