lua-users home
lua-l archive

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


On Tue, Feb 15, 2011 at 10:05 AM, Peter Odding <peter@peterodding.com> wrote:
> Actually I'm not that lazy! ;-) I looked through inspections.lua but assumed
> the "Global self" example referred only to setting the global variable
> "self". Good to hear your plug-in handles both cases, and yes it is an
> insidious error!
>
>  - Peter Odding

Didn't mean to imply you were lazy :) Just wanted to make it easier on everyone.

But yes, anywhere it sees global self being used it flags it. It knows
which identifiers are local and which ones are global, so it can
detect global self anywhere that it is used.

-Jon