nim-stew/std_shims/objects.nim
2018-12-18 17:39:39 +02:00

5 lines
107 B
Nim

template init*(lvalue: var auto, args: varargs[typed]) =
mixin init
lvalue = init(type(lvalue), args)