slang-users mailing list

[2020 Date Index] [2020 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[slang-users] is_defined


Hi

If I do

  if (is_defined ("foo"))
    foo ();
    
and "foo" is not defined, then this notwithstanding, an error
is thrown: "foo is undefined".

This shouldn't happen, IMO, since the condition was not met,
and then the statement should be silently ignored and no error
thrown.

But maybe there is a reason for this?

Thanks,
Morten
_______________________________________________
For list information, visit <http://jedsoft.org/slang/mailinglists.html>.


[2020 date index] [2020 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]