Geomol / World

World Programming Language
http://world-lang.org
22 stars 7 forks source link

Problem with use #19

Open no-e-in opened 9 years ago

no-e-in commented 9 years ago

In rebol:

>> use [x][x: 5 y: func [r][r + x]]
>> y 6
== 11

In World:

Loading Cortex... Done
World/Cortex 0  (c) John Niclasen, NicomSoft
build: Apr  3 2015 19:29:22
w> do %rebol.w
Loading REBOL Extension... Done
w> use [x][x: 5 y: func [r][r + x]]
w> y 5
** Script error: y has no value
** Near: y 5
Geomol commented 9 years ago

Problem solved.

This issue can be closed.

no-e-in commented 9 years ago

In Rebol:

>>  use [x][x: 5 use [y][y: 6 u: func [t][t + x + y]]]
>> u 5
== 16

In World:

Loading Cortex... Done
World/Cortex 0  (c) John Niclasen, NicomSoft
build: Aug  2 2015 18:40:16
w> do %rebol.w
Loading REBOL Extension... Done
w> use [x][x: 5 use [y][y: 6 u: func [t][t + x + y]]]
w> u 5
** Script error: x has no value
** Near: t + x + y