the ... operator is useful and with a little change if needed, it can increase pb syntax power.
you can see how this operator works in the following codes.
Code: Select all
Procedure max(...)
Protected Dim var_args(...)
Protected mx = var_args(0)
For i=0 To ArraySize(var_args())
If (var_args(i) > mx) : mx = var_args(i) : EndIf
Next
ProcedureReturn mx
EndProcedure
Debug max(22,133,45) ; result --> 133
Debug max(90,88,12,45,677,211) ; result --> 677
Debug max(33,25,233,85,11,231,34,64) ; result --> 233