lua-users home
lua-l archive

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


On Tue, Oct 23, 2012 at 8:08 AM, Rena <hyperhacker@gmail.com> wrote:
> designed around this capability, so e.g. print would have a local
> variable for you to change if you want to send its output somewhere

Well, print() can always be defined as a callable object, and then
things like print.file = io.stderr become very easy.

(Less transparent on the C side of course, and I also worry about
mutable globals)