Code: Select all
Procedure.i proc(one.i, two.i = 1337, three.i = 1337)
Debug one
Debug two
Debug three
EndProcedure
In PAWN I can do that:
Code: Select all
proc(0, _, 1338)
In PureBasic I can not do that:
Code: Select all
proc(0, 1337, 1338)
Code: Select all
Procedure.i proc(one.i, two.i = 1337, three.i = 1337)
Debug one
Debug two
Debug three
EndProcedure
Code: Select all
proc(0, _, 1338)
Code: Select all
proc(0, 1337, 1338)
Think is a useful feature and not hard to implement in PBPhantomas wrote:"_" means "skip it" and this argument will be equal 1337.
Code: Select all
#_ = -1
Procedure.i proc(one.i, two.i = 1337, three.i = 1337)
If two = #_
two = 1337
EndIf
Debug one
Debug two
Debug three
EndProcedure
proc(0, #_, 1338)