[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: what to make of this fellow named __ipairs?
- From: Tony Finch <dot@...>
- Date: Thu, 27 Jan 2011 15:11:31 +0000
On Thu, 27 Jan 2011, Javier Guerra Giraldez wrote:
> your proposal would mean the language have to distinguish the 'kind'
> of lookup according to the 'intent': was it a 'simple' table lookup?
> is it a 'method call'?
Yes. This distinction already exists in the syntax (. vs :) and in the
implementation (GETTABLE vs SELF).
f.anthony.n.finch <firstname.lastname@example.org> http://dotat.at/
HUMBER THAMES DOVER WIGHT PORTLAND: NORTH BACKING WEST OR NORTHWEST, 5 TO 7,
DECREASING 4 OR 5, OCCASIONALLY 6 LATER IN HUMBER AND THAMES. MODERATE OR
ROUGH. RAIN THEN FAIR. GOOD.