lua-users home
lua-l archive

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


> 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