lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Ops, errata.

**********************
As a last thought, just for fun:

If ooset can set OOBit of string values, you could write something like:

local oldlower = classes.string.lower

classes.string.lower = new function()  -- I forgot the new (it´s too
new for me :-))
 return "OO:" .. self.oldlower();
end

local s = new "test" -- using new to create a String Object
print (s.lower())