Compatibility: the `init' function no longer calls `imprint' for you.
[sod] / doc / concepts.tex
index 74e5902..1663939 100644 (file)
@@ -727,7 +727,7 @@ linking it into some larger data structure to keep track of it.
 Classes can declare initial values for their slots.  A class object's @|init|
 slot points to a function which will establish the appropriate initial values
 for a new instance's slots.  Slots are not initialized in any particularly
-useful order.  The @|init| function also imprints the instance storage.
+useful order.
 
 The provided initialization protocol is extremely simplistic; most notably,
 it's not possible to pass parameters into the initialization process.
@@ -743,6 +743,7 @@ returns a pointer to the new instance.
   \{ \\ \ind
     void *p = malloc(c@->cls.initsz); \\
     if (!p) return (0); \\
+    c@->cls.imprint(p); \\
     c@->cls.init(p); \\
     return (p); \- \\
   \}