X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ion3-doc.git;a=blobdiff_plain;f=ionnotes%2Fnode3.html;fp=ionnotes%2Fnode3.html;h=abce6130ad63712aa20c7214c181c39321cafa31;hp=0d678b79b6825090f58da9c356dddd3d7d41124c;hb=6c79ccf7ddf25af66675865badef0b8f6d0fee78;hpb=ff50b32b3f2fb8bebd445decad84eae135113d0e diff --git a/ionnotes/node3.html b/ionnotes/node3.html index 0d678b7..abce613 100644 --- a/ionnotes/node3.html +++ b/ionnotes/node3.html @@ -64,11 +64,11 @@ original version by: Nikos Drakos, CBLU, University of Leeds

First, to get things clear, what are considered objects here are C -structures containing a properly initialised +structures containing a properly initialised structure defined in ioncore/obj.h as the first element (or the first element of the structure which is the first element and so on which gives rise to inheritance). The WObj structure contains a pointer -to a WObjDescr class type info structure and +to a WObjDescr class type info structure and a list of so called ``watches''. The WObjDescr structure simply lists the class name, a table of dynamic functions and a pointer to deinitialisation function (or ``destructor''). @@ -77,7 +77,7 @@ deinitialisation function (or ``destructor''). Ion does not do any reference counting, garbage collecting or other fancy things related to automatic safe freeing of objects with its simplistic object system. Instead special watches (the WWatch - structure) may be used to create safe references to + structure) may be used to create safe references to objects that might be destroyed during the time the specific pointer is needed. When an object is destroyed, its list of watches is processed, setting the pointers in the watches to NULL and the watch handlers for