You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 3458 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
The manual says:
18.3.5 Objects
Objects are represented as zero-tagged blocks. The first field of the
block refers to the object class and associated method suite, in a
format that cannot easily be exploited from C. The remaining fields of
the object contain the values of the instance variables of the
object. Instance variables are stored in the order in which they
appear in the class definition (taking inherited classes into
account).
But this appears not to be quite the case. Firstly, objects are
tagged with Object_tag (248). Secondly it seems like the unique
object ID (Oo.id) is stored in the second field, with the instance
variables coming in the third and subsequent fields. (I suppose we
can say that all objects inherit from an implied superclass containing
an ID field, but it would be nice for the documentation to be clearer
on this).
Rich.
--
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com
The text was updated successfully, but these errors were encountered:
Original bug ID: 3458
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
The manual says:
But this appears not to be quite the case. Firstly, objects are
tagged with Object_tag (248). Secondly it seems like the unique
object ID (Oo.id) is stored in the second field, with the instance
variables coming in the third and subsequent fields. (I suppose we
can say that all objects inherit from an implied superclass containing
an ID field, but it would be nice for the documentation to be clearer
on this).
Rich.
--
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com
The text was updated successfully, but these errors were encountered: