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

[REBOL] Stupid question: Locals ??

From: robert:muench:robertmuench at: 17-Dec-2002 17:41

Hi, I somehow seem to be a bit blind in one eye. I have the following code: paragraph: has [name pvalue toemit][ toemit: make block! ['textbox ""] ; value now has a name/value structure itself foreach tmp value [ name: tmp/1 pvalue: tmp/2 switch/default name [ parapart [append last toemit pvalue] ][print ["Unknown INLINE-TAG found:" name]] ] emit toemit ] The strange thing is that 'toemit keeps its value between calls to paragraph. Why this? It's declared as local and I create a new block each time. Robert