- Subject: [slang-users] Limitations of eval()?
- From: Bernd Eggink <bernd.eggink@xxxxxxxxxx>
- Date: Mon, 4 Nov 2019 00:31:45 +0100
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]