# fixed plus single named param + used optional + ext property init class OptParam def main is shared x = OptParam() x.foo('default') assert x.value == 0 assert x.value1 == 0 # can only set props like this in ctor calls x.foo('opt', 45, value1=66) # .error. no parameter named "value1" assert x.value == 45 assert x.value1 == 1 var value = 0 var value1 = 0 def foo(s as String, nmd as int = 0, nmd1 as int = 0) .value = nmd if s =='default', assert nmd1 == 0 .value1 = nmd1