|
From: <pl...@pi...> - 2014-10-31 16:57:31
|
On 10/30/14 22:42, Ethan A Merritt wrote: > > On Thursday, 30 October, 2014 12:58:54 pl...@pi... wrote: >> Also the odd need to use commas in place of the usual semicolon >> in defining functions seems inconsistent and could be limiting as >> things move forwards. > > Are you referring to the comma operator for serial evaluation? > That is taken straight from C, C++, perl, javascript and no doubt > other languages as well. > > http://en.wikipedia.org/wiki/Comma_operator > > > Ethan > My apologies, apparently I was successfully using this feature without realising its correct syntax definition. Where is it documented? help comma does not seem relevant. I was thinking the following two uses were the same thing. It seems the first is a separator, second is an operator: gnuplot> plot a=1,b=2, sin(x) fn(x)=( a=1,b=2, sin(x) ) Peter. |