nesting contexts

For the Compleat Fan
Locked
newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

nesting contexts

Post by newdep »

Hello Lutz,

Is it possible to have nested contexts (nested objects) ?

example:

>(context 'one)
one>(context 'two)
one'two>(context 'three)
one'two'three>(set 'four "value")
one'two'three>(context 'MAIN)

>one'two'three:four
"value"

Norman.
-- (define? (Cornflakes))

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

That was possible in an early implementation, but it introduces too much complexity (context hirarchiy ~ object hirarchy, scoping rules etc).

Lutz

Locked