diff options
Diffstat (limited to 'src/pd.lua')
-rw-r--r-- | src/pd.lua | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -83,6 +83,13 @@ pd._whoami = function (object) end end +--class method dispatcher +pd._get_class = function (object) + if nil ~= pd._objects[object] then + return pd._objects[object]:get_class() + end +end + -- prototypical OO system pd.Prototype = { } function pd.Prototype:new(o) @@ -288,6 +295,9 @@ end function pd.Class:whoami() return self._scriptname or self._name end +function pd.Class:get_class() -- accessor for t_class* + return self._class or nil +end local lua = pd.Class:new():register("pdlua") -- global controls (the [pdlua] object only) function lua:initialize(sel, atoms) |