slang-users mailing list

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

[slang-users] Limitations of eval()?


Hi,

I noticed that, while this works:

slsh> s = "print(\"foo\")"; eval(s);

"foo"

this doesn't:

slsh> s = "print(\"foo\nbar\")"; eval(s);

***string***:1: Expecting a quote-character: found '??'

It seems that eval() doesn't like statements with a line break in it, but I found no such limitation mentioned in the docs.

- Bernd

--
http://www.sudrala.de
_______________________________________________
For list information, visit <http://jedsoft.org/slang/mailinglists.html>.


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