lua-users home
lua-l archive

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


Hi, list

How many table accesses caused by this expression:

zip = company and company.director and
company.director.address and
company.director.address.zipcode

As per the book(programming in Lua, 4th edition), the answer is 6.
Why?
For 0+1+2+3?

Why "company" does not perform a table access?
Could somebody shed some light on this question?

Best regards.
Sunshilong