# fixed plus single named param class OptParam def main is shared x = OptParam() x.value = 0 x.foo('default', nmd=44) assert x.value == 44 x.foo(nmd = 45, s='default') assert x.value == 45 var value = 0 def foo(s as String, nmd as int) # print s,i .value = nmd