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