lua-users home
lua-l archive

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



On Feb 10, 2015, at 8:22 PM, 张睿 <zrui16@hotmail.com> wrote:

Moreover, what is the exact relationship between a valid index and a pseudo index? The manual has its inconsistency:
The manual says that a valid index refers to a real stack postition, whereas a pseudo index does not. So by definition they are totally different things. No pseudo index can be a valid index.
But, in section 4.3:
An acceptable index can be any valid index, including the pseudo-indices, but it also can be any positive index after the stack top within the space allocated for the stack, that is, indices up to the stack size.
The word "including" seems to indicate that pseudo-indices are included in valid index, which contradicts the definition.

it’s subtle, but perhaps “which includes…”, instead of “including…” might be a better way to phrase it. The comma here makes the meaning technically clear, but English is ghastly at that level:

http://www.nytimes.com/2006/10/25/business/worldbusiness/25comma.html?_r=0

—Tim