Menu

#4 Long numbers not recognized as tokens

open
twine (5)
3
2002-05-17
2002-05-14
No

Long numbers (somewhere around 10-11 characters) cause an operator signature mismatch when
used with operators expecting tokens (t). Example:

"11112222333" "aaa" match println

Discussion

  • Brian Reilly

    Brian Reilly - 2002-05-17

    Logged In: YES
    user_id=536981

    I've checked in a fix for the match problem (which is how the report originally came in) by changing the
    signature of match, match-i, substitute, and substitute-i. The fix is checked into the Release_0_4-bugfix
    branch. However, there are still related problems, such as:

    "1.2" "a" =

    should probably treat "1.2" as a path instead of a float. There seems to be a whole category of problems
    related to operator signatures.

     
  • Brian Reilly

    Brian Reilly - 2002-05-17
    • priority: 7 --> 3
     
  • Dmitry Orlov

    Dmitry Orlov - 2002-05-17

    Logged In: YES
    user_id=405402

    This is probably a tweak to the scanner, and to the function
    that generates code elements from strings. They should both
    treat strings like 1.2 as both a number and a path.

    In addition, strings like
    1231231212312123121212312124124124, which can't be
    represented as numbers, should generate an error unless they
    are quoted. Strings like
    123123124124124124.12412412412412412412, on the other hand,
    are fine unquoted, because they are also paths.

     

Log in to post a comment.

Monday.com Logo