[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: "namespaces" ?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 22 Apr 2002 11:29:32 -0300
> All credit, of course, goes to Edgar. This was his idea. I'd love to
> see it implemented in Lua (the basic types support).
Just to remind you, Lua 4.0 already had support for this kind of OO
programming with basic types. For instance,
settagmethod(tag(""), "gettable", function (a,b)
return getglobal('str'..b)
end)
> ansiStr = "Hello"
> print(ansiStr:lower())
Edgar gave several important contributions to Lua, but "basic types support"
was not one of them...
-- Roberto