Re: value() misleading?
- Posted by Jiri Babor <J.Babor at GNS.CRI.NZ> Jan 19, 1999
- 451 views
Rolf wrote: >-- Some time ago I asked if in certain cases value() returns >-- misleading results. Run the following program <snip> I have always felt uncomfortable with this one too. But when I moaned about it, two or three years ago, Rob's answer was, more or less, that's the way he meant it to be! (A bit of irony: last time I tried to come up with something better I finished helping Rob make the existing beast go much faster...) In fact I would prefer a slightly different scheme, a function that would attempt to evaluate the whole string, and return either a sequence of converted values (objects), or just an integer, effectively the string index at which the conversion failed.