|
From: Ethan A M. <sf...@us...> - 2011-11-23 21:16:15
|
On Tuesday, November 22, 2011 11:22:09 pm gbliu wrote:
> By the way, there seems to be a small bug:
> gnuplot> s="a"
> gnuplot> i=1
> gnuplot> pr "a".1
> ^
> ';' expected
Not really a bug. The command is truly ambiguous because
".1" could be parsed as either the number one tenth or the
string concatenation operator followed by the integer 1.
Notice that
print "A" . 1
works as expected because now there is a space between the
dot and the 1, removing the ambiguity.
Ethan
> gnuplot> pr "a".i
> a1
> gnuplot> pr s.1
> ^
> ';' expected
> gnuplot> pr s.i
> a1
>
> So, only value("a".i) and value(s.i) works, and value("a".1) and
> value(s.1) report errors. Is this a bug?
>
>
>
>
>
|