|
From: Philipp K. J. <ja...@ie...> - 2014-10-31 17:10:46
|
On Fri, 31 Oct 2014 17:38:00 +0100 pl...@pi... wrote: > 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. It's among the list of binary operators. (In the PDF doc on p28.) > > 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. > > > ------------------------------------------------------------------------------ > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > Membership management via: > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |