ds26gte / pyret-lang

The Pyret language.
Other
2 stars 0 forks source link

Weird errors from functions with question marks #22

Closed Emmay closed 8 years ago

Emmay commented 8 years ago

Not sure if we want to allow question marks (huh??) in function names, but the short program: (define (safe-left? x) (> x 60)) throws: ReferenceError: Invalid left-hand side in assignment

A longer game file defines the function gameover?, uses it below the definition, but throws the error: The name gameoverƎQUESTION is used but not defined at (this error may be related to #9 )

ds26gte commented 8 years ago

Fixed in ds26gte/code.pyret.org@f67ad78.

(Yes, we do want to allow question marks ("huhn?") in function names, and in all Spyret identifiers in general, and not just at the end of the identifier.)

schanzer commented 8 years ago

Sweet! Let's close this.