aboutsummaryrefslogtreecommitdiff
path: root/README.oo
diff options
context:
space:
mode:
Diffstat (limited to 'README.oo')
-rw-r--r--README.oo14
1 files changed, 14 insertions, 0 deletions
diff --git a/README.oo b/README.oo
index 57a1af1..8dd7a30 100644
--- a/README.oo
+++ b/README.oo
@@ -100,6 +100,18 @@ on a specific object.
the instance variables, and evaluate the body in that context.
This can be used for one-off evaluation to avoid declaring a method.
+RESERVED METHODS
+----------------
+The following methods are special
+
+ constructor::
+ If this method exists, it is invoked (with no arguments) after an object is created
+
+ unknown methodname ...::
+ If an undefined method is invoked, and this method exists, it is called with the methodname
+ and the original arguments
+
+
CREATING OBJECTS
----------------
An object is created with the 'new' method, or simply by using the classname shortcut.
@@ -120,6 +132,8 @@ For example:
. $b get balance
1000
+If the 'constructor' method exists, it is invoked just after the object is created
+
DECLARING METHODS
-----------------
In addition to the predefined methods, new methods may be declared, or existing