[REBOL] Set with context (was Global function defined in context)
From: reboler:ifrance at: 27-Dec-2002 17:08
Hi List, More on 'set with context, just to be sure... A 'set construction, like the following, is used to define a global function using local (variable) "variables".>> myWorld: context [[ a: 10 [ set 'helloA func [][print ["Hello " a]] [ ]>> >> a: 20== 20>> helloAHello 10 The HelloA function, however global, is looking first in the context where it comes from. Am I right? Patrick