Accessing Object Memory

Jack Newton newton at ualberta.ca
Mon Nov 12 18:39:24 UTC 2001


Hi,
 
I've searched everywhere I can think of to find an answer to this
question, but to no avail.  I'd really appreciate it if someone on this
list could give me a hand.
 
I'm interested in storing a reference to a Smalltalk object in a 32 bit
word array.  A seemingly convenient way to do this would be to store the
object pointer for the object into the array, then later retrieve the
object given its object pointer by accessing Squeak's object memory.
 
Objects provide an asOop method, which solves half the problem.
Although there is an ObjectMemory class that seems to provide the
services I'd need to retrieve an object, I can't find a way to access
the instance of ObjectMemory that Squeak actually uses.  
 
Does anyone know if it is possible to access Squeak's object memory
directly?

Many thanks,
Jack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20011112/1588bfda/attachment.htm


More information about the Squeak-dev mailing list