lua-users home
lua-l archive

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


On Thu, May 26, 2011 at 3:28 PM, Cuero Bugot <cbugot@sierrawireless.com> wrote:
> 1) For the specific use case of print (mainly debug) I would not consider armful in term of performances.

Well, it is easy enough to change the buffering (see
http://www.lua.org/manual/5.1/manual.html#pdf-file:setvbuf)

io.stdout:setvbuf("no")

It's indeed an issue that people need to know about - e.g. in SciTE we
set the run Lua command to be

lua -e "io.stdout:setvbuf 'no'" $(FileName)

precisely because of this issue - at least on Windows.

steve d.