Re: Proposal for a (small) enhancement to the value() function.
- Posted by Derek Parnell <ddparnell at bigpond.com> Jun 27, 2007
- 733 views
CChris wrote: > > Juergen Luethje wrote: > > > > I see now what you mean. However, I still don't know whether it's a good > > idea to change the value() function in the proposed way. > > > > CChris wrote: > > > > > value() is meant to read any Euphoria object out of a string, the same way > > > get() > > > reads it out of a file, as written in the docs. This has nothing to do > > > with > > > numeric values. > > > > Of course value() has got something to do with numeric values. > > Barely, and not mainly. A least, I have hardly ever used it for that purpose. Wow! I never knew it was a general purpose routine. I thought it only converted a string to a number and I've only ever used it for that purpose. But I don't like it much as it doesn't handle a whole lot of potential error conditions so I use my own toNumber() function. -- Derek Parnell Melbourne, Australia Skype name: derek.j.parnell