Mirsad Todorovac wrote:
I was thinking about how having the sane part of string converted and stored could provide extra functionality - that would add a means for the function to be used in i.e. numerical expressions parsing at little extra cost, since the number appears to be already converted (the right value appears in `x' in the case of only one invalid char).
Of course, provided that this is what we want. We could OTOH want either completely 'clean' string or nothing.
I can't tell the number of program's that do rely on BP or Delphi `Val' undocumented behavior.
Frank?
As I said, I'd prefer to leave it undefined (and document it as undefined), unless we hear of a definitive behaviour of some other relevant compiler. Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: 51FF C1F0 1A77 C6C2 4482 4DDC 117A 9773 7F88 1707