no, this feature isn't available in SimTalk.
Any way that this could be implemented in the future?
Similarly as in C# where you set initial values to certain parameters and they will be regarded as optional since they have a default value.
(firstArgument : string; optionalSecondArgument : string := "") is do end;
Currently it is not in our plans for one of the next versions.
We always have the tradeoff between simplicity and power of our programming language.
But we will give it another thought.
Yes, this is probably the best way to do it.
Especially coupled with makeArray to add as many or as few arguments as you wish and handle the rest in another method.
Cool. How do you use them? I can't find any reference to that in the help. If I try it, I get the following error: "Wrong number of parameters in Method: x passed, x+1 expected."
Is there some way that you have to declare that this parameter is optional?
param a: boolean, b,c: integer := 42, d: string := ""
In this case the Method can be called with 1 to 4 arguments (because b, c and d are optional).