lua-users home
lua-l archive

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


Markus Huber wrote:
The follwoing line does two things:

   myprint = print

1. does a real print
2. correct assignment of myprint

so it works but it prints too! And this is not allowed in my
circumstance. Thats why I would like to catch print.

Not confirmend. My lua does assign print to myprint only. All work correctly. Nothing will printed by this statement:

$ lua -v
Lua 5.0.2  Copyright (C) 1994-2004 Tecgraf, PUC-Rio
$ echo "myprint = print" | lua -
$