Overview
| Artifact ID: | 4383badb6d6c5550c3aa28f6b080ff07422f3866 |
|---|---|
| Ticket: | 542588ffffffffffffffffffffffffffffffffff
bug in expr error handler |
| User & Date: | msofer on 2002-04-17 19:58:53 |
Changes
- icomment:
Logged In: YES user_id=148712 According to expr.n: "If no numeric interpretation is possible, then an operand is left as a string (and only a limited set of operators may be applied to it)." As I understand that, the following is indeed a bug: % set a 08 08 % expr $a "08" is an invalid octal number % expr 08 "08" is an invalid octal number The source of misunderstanding is obviously in "no numeric representation is possible": tcl seems to say that "08" can be represented as a number, which happens to be invalid - I'd rather say that 08 cannot be represented as a number. In the same vein, how should we interpret a string of digits that is too large to represent as an integer: "an integer too large to represent", or "a string that cannot be represented as a number"?
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"