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

[REBOL] Re: How to remove words from objects?

From: g:santilli:tiscalinet:it at: 14-Jan-2004 9:50

Hi Gregg, On Tuesday, January 13, 2004, 9:41:35 PM, you wrote: GI> remove-word: func [object word] [ GI> make object! head remove/part find third object to set-word! word 2 GI> ] BTW, on newer version of REBOL, if you're making the object from the THIRD of another object, you should use CONSTRUCT. On earlier versions of REBOL, where CONSTRUCT is not available, you'd either have to write something like CONSTRUCT, or you need to keep in mind that the above does not work on all objects. This is a problematic example for the above:
>> print mold third context [a: 'a]
[a: a] Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/