swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating Objects from the .scm file


From: Marcus G. Daniels
Subject: Re: Creating Objects from the .scm file
Date: 15 Nov 1999 10:30:00 -0800
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "B" == Benedikt Stefansson <address@hidden> writes:

B> I just wanted to clarify one thing, so as not to create any
B> confusion Obviously the Objective-C runtime can't 'create a class'
B> - it can simply return a reference to a class that has already been
B> compiled. So if you set antClass to NavyAnt and the class 'NavyAnt'
B> doesn't exist, the program will crash.

The Lisp archiver has the directive "make-class" (in addition to
"make-instance").  This is useful when you want to load a dataset, but
the fields aren't already described by a class in the model's C code.
While there won't be class-specific methods for the classes made in
this way, you can use probes to get at the data.

But in the anl Scheme demo, it is possible to construct new methods at
runtime.  So it isn't far from the truth to say that you could have a
model archive full classes including mechanism.

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]