lua-users home
lua-l archive

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


On Mon, May 02, 2011 at 11:09:49AM +0200, steve donovan wrote:
> Why not just this? ;)
> 
> local type = io.popen('file -i '..myfile):read()
> 
Because one should make a habit of not choosing a local variable name
that would shadow a basic library function?

D.