lua-users home
lua-l archive

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


On Mar 29, 2012, at 9:56 PM, Steve Litt wrote:

> So here's what I did…

Alternatively:

% lua -l strict Test.lua

lua: Test.lua:1: variable 'bar' is not declared
stack traceback:
	[C]: in function 'error'
	./strict.lua:37: in function '__index'
	Test.lua:1: in main chunk
	[C]: in ?

In other words, don't require strict in your code, but instead load it when appropriate during your development cycle, courtesy of lua -l.