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

[REBOL] Use of 'context

From: coussement:c:itc:mil:be at: 12-Apr-2001 12:56

Hi list: I recently discover the 'context word, but I do not see what functionality it adds compared to the creation of an object :
<snip>
REBOL/Command 1.0.0.3.1 19-Sep-2000 Copyright 2000 REBOL Technologies. All rights reserved.
>> help context
USAGE: CONTEXT blk DESCRIPTION: Defines an underived object. CONTEXT is a function value. ARGUMENTS: blk -- Object variables and values. (Type: block)
>> c: context [val: make integer! 999] >> probe c
make object! [ val: 999 ]
>> c/val
== 999
>> o: make object! [val: make integer! 999]
== 0
>> probe o
make object! [ val: 999 ]
>> o/val
== 999 </snip> What the purpose of this? What does RT means by "underived" (perhaps un-inherited ) ? Regards, chr==