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

[REBOL] Setting global from within a function.

From: terry::depotcity::com at: 8-Feb-2001 10:58

Hello all. Another question. How do you set a global word from a func word eg; n: [1 2] the-funk: func [the-input][ if (first the-input) = 2 [ {Set the global value of the-input, in this case N, to som ething? eg: 42} ] ] the-funk n
>> n
== 42 Thanks. Terry Brownell