Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Set with context (was Global function defined in context)

From: ammon::addept::ws at: 27-Dec-2002 10:10

HI, Yes you are right...
>> myWorld: context [
[ a: 10 [ set 'helloA func [][print ["Hello " a]] [ ]
>> helloA
Hello 10
>> myWorld/a: 100
== 100
>> helloA
Hello 100
>> myWorld: context [
[ set 'helloA func [][print ["Hello " a]] [ ]
>> a: 20
== 20
>> helloA
Hello 20 HTH Ammon Johnson CIO of Addept ---------- (www.addept.ws) 435.616.2322 ---------- (ammon AT addept.ws)