newLISP Fan Club

Forum => Anything else we might add? => Topic started by: newdep on March 11, 2004, 01:21:27 PM

Title: nesting contexts
Post by: newdep on March 11, 2004, 01:21:27 PM
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.
Title:
Post by: Lutz on March 12, 2004, 07:28:19 AM
That was possible in an early implementation,  but it introduces too much complexity (context hirarchiy ~ object hirarchy, scoping rules etc).



Lutz