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

[REBOL] Re: Bug in LAYOUT with VAL helpdesk #6211

From: larry::ecotope::com at: 29-Apr-2001 17:06

Hi All I found the bug.
>> protect 'val >> layout [box "hello"]
** Script Error: Word val is protected, cannot modify ** Where: forall ** Near: val: first args switch/default type?/word
LAYOUT calls several other VID functions and the code above is in a function called GROW-FACETS, which is called by LAYOUT. The word VAL should have been declared local to GROW-FACETS, but was not. Until it gets fixed, I devised a quick patch for GROW-FACETS. You can get it at: Put the script in the same directory as your user.r file and add this line do %grow-facets-patch.r to your user.r file. The more advanced REBOLS out there may enjoy figuring out how the patch works. Cheers -Larry ----- Original Message ----- From: "Larry Palmiter" <[larry--ecotope--com]> To: <[rebol-list--rebol--com]> Cc: <[feedback--rebol--com]>