Oz and Mozart Users Mailing List

Re: Whole Env for EvalExpression?


From: Denys Duchier (Denys.Duchier@ps.uni-sb.de)
Date: Mon Aug 13 2001 - 20:40:38 CEST


rlpowell@digitalkingdom.org (Robin Lee Powell) writes:

> Dynamically loading in classes from source at run time, for my MOO (MUD
> object-oriented). As it is, I need to add all of the classes parents
> and the class variable to the env(), which is going to be difficult
> programmatically.

Why not use functors? Then you can use `import' and the module
manager takes care of all issues. Additionally, with functors your
won't run into the problem of possibly shadowing existing variables.

Cheers,

-- 
Dr. Denys Duchier			Denys.Duchier@ps.uni-sb.de
Forschungsbereich Programmiersysteme	(Programming Systems Lab)
Universitaet des Saarlandes, Geb. 45	http://www.ps.uni-sb.de/~duchier
Postfach 15 11 50			Phone: +49 681 302 5618
66041 Saarbruecken, Germany		Fax:   +49 681 302 5615
-
Please send submissions to users@mozart-oz.org
and administriva mail to users-request@mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.



This archive was generated by hypermail 2b29.