Re: Some conservative Lua metamethod extension proposals
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Some conservative Lua metamethod extension proposals
- From: Sergey Zakharchenko <doublef.mobile@...>
- Date: 2018年3月24日 11:40:51 +0300
Dirk,
> > Does pairs() have exclusive rights on calling __pairs()? (Obviously no).
>
> Should we extend that logic to __len, __add, __concat etc, or is there
> something special about __pairs?
Why not? E.g. __len could be placed on tables for forward compatibility and called explicitly in Lua 5.1 in some sort of an lpairs() iterator.
Best regards,
--
DoubleF
- References:
- Some conservative Lua metamethod extension proposals, Sergey Zakharchenko
- Re: Some conservative Lua metamethod extension proposals, Dirk Laurie
- Re: Some conservative Lua metamethod extension proposals, Sergey Zakharchenko
- Re: Some conservative Lua metamethod extension proposals, Philipp Janda
- Re: Some conservative Lua metamethod extension proposals, Egor Skriptunoff
- Re: Some conservative Lua metamethod extension proposals, Dirk Laurie
- Re: Some conservative Lua metamethod extension proposals, Sergey Zakharchenko
- Re: Some conservative Lua metamethod extension proposals, Dirk Laurie
- Re: Some conservative Lua metamethod extension proposals, Sergey Zakharchenko
- Re: Some conservative Lua metamethod extension proposals, Dirk Laurie