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

[REBOL] Bug in LAYOUT with VAL

From: larry::ecotope::com at: 28-Apr-2001 17:04

Hi all While checking to see if a script was overwriting any global words, I found the LAYOUT function is using the word VAL in the global context. From the View Console (Win98) on a fresh start without running the desktop and without any user code in user.r:
>> val
== "imanXwin kludge" ; hmm...
>> val: 23
== 23
>> layout [box "hello"] >> val
== "hello" So if I define the word VAL, the value will be wiped whenever the LAYOUT function is called. Probably best to avoid using the word VAL until this is fixed. It is interesting to note that the word VAL is defined as a local in the layout function, but it leaks out from somewhere when layout is called. -Larry