I'd like to have something like

type Level = enum
    LOW HIGH
template low*(arg: expr): stmt =
    something(Level.LOW,arg)
template high*(arg: expr): stmt =
    something(Level.HIGH,arg)

But I don't want to copy and paste the same template declaration code for every 
kind of "Level". Is it possible to generate those templates automatically?

Reply via email to