Here is an abridged and PG rated version of "Lua's Story of O": On the First Day, there was "thisClass": local thisClass = superClass.inherit( superClass ) Which "inherited" all its behavior from "superClass": local superClass = Object On the Second Day, came the "new" instance: thisClass.new = function() -- instantiate the super class local super = superClass.new() -- inherit the super class instance methods local this = super.class().inherit( super ) end On the Third Day, came the "method": this.justDoIt = function() return true endOn the Fourth Day, through the sheer power of the Word alone, the "object" came into being:
MyClass = thisClassThe rest of the week was declared an extended weekend and there was much rejoicing through the land.
Or so the story goes...See attachment for the graphical details of a diminutive object oriented system, known as "LU" in some circles.
Cheers -- PA, Onnay Equitursay http://alt.textdrive.com/
Attachment:
LU.tar.gz
Description: Binary data