[Scilab-Dev] eval() => evstr()

Sylvestre Ledru sylvestre.ledru at scilab-enterprises.com
Sun Jan 20 16:55:23 CET 2013


On 20/01/2013 16:24, Samuel Gougeon wrote:
> Hello,
> 
> eval() is being tagged as obsolete at
> https://codereview.scilab.org/#/c/10237/
> evstr() is claimed to be the proper replacement.
> Removing this -- almost -- duplicate is rather a good new.
> However, here is a case supported by eval() and not by evstr():
> 
> eval("plot2d()")  // does the plot and returns []
> 
> while
> 
> evstr()  // does the plot but breaks with the error
> -->evstr("plot2d()")
>  !--error 10000
> evstr : L'expression donnée n'a pas de valeur.
> at line      68 of function evstr called by : 
> evstr("plot2d()")
> 
> What do you plan about it?
Thanks for the feedback. For now, it was just a test and your email is
an excellent feedback!

Thanks
Sylvestre




More information about the dev mailing list