hostilefork / replpad-js

Interactive Web Console for Rebol language (Ren-C branch)
GNU Lesser General Public License v3.0
13 stars 9 forks source link

evaluating lambdas at console causes different error from core #74

Closed gchiu closed 5 years ago

gchiu commented 5 years ago
>>  do function [x] [x + 1] 1
** Script Error: + does not allow block! for its value1 argument
‌** Where: source do main
‌** Near: [x + ~~ 1]
‌** Line: 1

and in core we get

Script Error: Use EVAL or APPLY to call functions arity > 0, not DO Where: do Near: [... function [x] [x + 1] ~~ 1] Line: 1

hostilefork commented 5 years ago

Fix'd:

https://github.com/hostilefork/replpad-js/commit/0230e87ec17f45b27bf1f4442330c71e73ebdeaa