lua-users home
lua-l archive

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

Hello list,

I have just finished rewroting the documentation of eoo.lua, that is a
very minimalistic implementation of OO in Lua in just 5 lines of code.
Its code is just this, except for some functions that I only use very

  Class = {
      type   = "Class",
      __call = function (class, o) return setmetatable(o, class) end,
  setmetatable(Class, Class)

Most people will probably think that this has too few features to be
useful to them, but the diagrams in the documentation are very nice,
and can be adapted to other implementations of OO too (I guess).

It is here:

  Eduardo Ochs