[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: New metamethod for method lookup
- From: spir <denis.spir@...>
- Date: Sun, 15 Nov 2009 20:42:34 +0100
Le Sun, 15 Nov 2009 13:00:20 -0500,
Jim Pryor <lists+lua@jimpryor.net> 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.
Denis
--------------------------------
* la vita e estrany *
http://spir.wikidot.com/