I wanted to ask wheter (and how) is it possible to code optional parameters in Zorro functions, like in C/C++ something like
void myfunction(int par1, double par2 = 3.14) {...}
where of course par2 is optional (i.e. it has the defatult value 3.14 if the client does not specifies anything else).
It looks like that Zorro
clearly uses optional parameters but I have not found any spec about it in the manual.
In addition, always in the manual, it is very (very very) hard to get a clear-cut, immediate understanding of wich parameters are optional. Take for instance the description of the lhour function:
lhour (int zone, int offset): int
Closing local hour of the given bar in the given time zone (see timeOffset below), considering daylight saving time (see dst below). F.i. lhour(EST) returns the current hour at the New York Stock Exchange.
From the example in the description it is then obvious that int offset is optional (and... obviously = 0). But for more complex functions wouldn't be nicer to include in the reference which are the parameters that can be omitted and how do they get assigned by default (e.g. indicating them with the "= xyz" label, or, I don't know... putting them at least in
italic)?
Thank you in advance.