Login  Register

Re: AST-Core-Parser readFrom: question

Posted by Nicolai Hess-3-2 on Oct 26, 2016; 8:25am
URL: https://forum.world.st/AST-Core-Parser-readFrom-question-tp4920128p4920197.html



2016-10-25 21:16 GMT+02:00 Brad Selfridge <[hidden email]>:
Is it safe to use the AST-Core-Parser class extension "readFrom:" in a
business application?

Maybe no. It is bound to smalltalk syntax and the allowed number literals. For example, a '+' sign in a float exponents has some suprising behavior

Number readFrom:'3e4' "-> 30000"
Number readFrom:'3e+4' "->3"
 



-----
Brad Selfridge
--
View this message in context: http://forum.world.st/AST-Core-Parser-readFrom-question-tp4920128.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.