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

[REBOL] protect-system caveat Re:

From: larry:ecotope at: 18-Aug-2000 13:36

Hi Grant This looks like a bug in 'help. You should send it to feedback. The problem is caused by doing the
>> help protect-system
before doing protect-system. Done in the other order, everything works OK. ----snip Script: "User Preferences" (31-Oct-1999/18:54:30-8:00)
>> protect-system >> help protect-system
USAGE: PROTECT-SYSTEM DESCRIPTION: Protects all system functions and the system object from redefinition. PROTECT-SYSTEM is a function value.
>> first: 5
** Script Error: Word first is protected, cannot modify. ** Where: first: 5
>>
BTW You can use 'source to look at the code for both 'help and 'protect-system. If you do
>>source protect-system
before doing 'protect-system, it does not cause this problem, which is one reason I think the bug is in 'help. HTH -Larry