[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How many table accesses caused by this expression?
- From: Robert Burke <sharpobject@...>
- Date: Sun, 11 Oct 2020 19:06:06 +0900
If "company" is a local variable, you have its value on the stack. If it is global, you will need a table lookup to find it.
How many table accesses caused by this _expression_:
zip = company and company.director and
As per the book(programming in Lua, 4th edition), the answer is 6.
Why "company" does not perform a table access?
Could somebody shed some light on this question?