[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: defobj follow up/ Reflective objects
From: |
Marcus G. Daniels |
Subject: |
Re: defobj follow up/ Reflective objects |
Date: |
05 Jun 2000 10:14:10 -0700 |
User-agent: |
Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4 |
>>>>> "PJ" == Paul E Johnson <address@hidden> writes:
PJ> Looking at the -lispOutShallow: method in DefClass.m, I don't
PJ> understand why this will not work.
PJ> struct objc_ivar_list *ivars = ((Class_s *) self)->ivarList;
PJ> unsigned count = ivars->ivar_count;
PJ> printf ("ivar count %d ", count);
One reason this might break would be if `self' was a normal object
and not a class object. (The first ivar of an instance is the the
class object.)
This kind of mapping over instance variables is done in an language
independent way by using the map_object_ivars routine in defobj/internal.m.
I don't suggest you use that, though. The intended public interface
for casually reading and writing ivar values is VarProbe. For
preserving object state, the intended interfaces are {Lisp,HDF5}Archiver.
==================================
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.
- defobj follow up/ Reflective objects, Paul E. Johnson, 2000/06/05
- Re: defobj follow up/ Reflective objects,
Marcus G. Daniels <=
- Re: defobj follow up/ Reflective objects, Paul E. Johnson, 2000/06/06
- Re: defobj follow up/ Reflective objects, Marcus G. Daniels, 2000/06/06
- problem Creating/Using Canvas objects 2.0.1-->2.1.1, Catherine Dibble, 2000/06/06
- Re: problem Creating/Using Canvas objects 2.0.1-->2.1.1, Ralf Stephan, 2000/06/06
- Re: problem Creating/Using Canvas objects 2.0.1-->2.1.1, Marcus G. Daniels, 2000/06/06
- now 2.1.1 protection fault in SWARM.DLL (Win98), Catherine Dibble, 2000/06/06
- Re: now 2.1.1 protection fault in SWARM.DLL (Win98), Marcus G. Daniels, 2000/06/06
- Re: now 2.1.1 protection fault in SWARM.DLL (Win98), Catherine Dibble, 2000/06/06
- Re: now 2.1.1 protection fault in SWARM.DLL (Win98), Marcus G. Daniels, 2000/06/06
Re: defobj follow up/ Reflective objects, Marcus G. Daniels, 2000/06/05