|
From: Daniel J S. <dan...@ie...> - 2006-05-31 09:05:32
|
Ethan A Merritt wrote:
> On Tuesday 30 May 2006 10:04 am, Petr Mikulik wrote:
>
>>>Subtopic of functions: defined
>>>`defined(X)` returns 1 if a variable named X has been defined, otherwise
>>>it returns 0.
>>
>>I also vote for this convention.
>
>
> OK. I found a way to make it work.
> Patch uploaded to SourceForge #1497957.
> I found one corner case that generates a strange error message
> on strange input, but other than that it seems OK.
>
> Please test.
Is this the strange case you are talking about?
gnuplot> print defined(cos(x))
unknown type in real()
gnuplot> y = 2
gnuplot> print defined(cos(y))
unknown type in real()
gnuplot> print defined(cos(pi))
unknown type in real()
|