2008/9/16 Mikael Djurfeldt <[EMAIL PROTECTED]>: > 2008/9/11 Neil Jerram <[EMAIL PROTECTED]>: >> Also, is Mikael right with his error #1? I'm thinking not, because I >> believe that instances are structs too, so surely it's OK to call >> SCM_STRUCT_DATA (x)[...] on them? > > It is good that you are sceptical about what I say because it was a > long time ago that I was well oriented in this code. However, the > problem here is not whether SCM_STRUCT_DATA is operating on the right > type of object. The real problem is that it is looking after > information which is not stored in an instance. Furthermore, it is > stored in the class object at a location with a negative offset. > Instances don't have any slots with negative offset.
Agreed, I understand that now, and I think my latest code suggestion already takes it into account. Regards, Neil