[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: OOBit
- From: Nilson <nilson.brazil@...>
- Date: Sat, 25 Sep 2010 13:14:18 -0300
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())