lua-users home
lua-l archive

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

Le Sun, 15 Nov 2009 13:00:20 -0500,
Jim Pryor <> s'exprima ainsi:

> That is, we don't ever make getmetatable(s1).__index == Set. You call
> Set.intersection(s1,...) not s1:intersection(...). In the same way you call
> table.remove(tbl,...) not tbl:remove(...).
> If you want inheritance, you can wrap that in too. You're just giving up
> the object-oriented syntax; you don't have to give up its power.

Yes, that's a solution for the general issue I'm evoking in parallel post.

* la vita e estrany *