If you just want to access the storage of another object directly, you can use get_storage(). Then the object has to be of that particular class (or inherit it) of course, otherwise get_storage() will return NULL.
If you need it to work with any object which has a variable "somevar" then you need to do something different.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2002-09-06 18:28: Subject: Mapping a variable in an object from C
How can I map a C variable in a C module between two objects? I.e.
object1 (C): storage->somevar;
object2 (C or Pike) anothervar -> object1.storage->somevar;
map_variable doesn't seem to be the right solution, or is it?
/ Marek Habersack (Grendel)