lua-users home
lua-l archive

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


On 02/07/2011 16.26, HyperHacker wrote:
On Sat, Jul 2, 2011 at 07:34, steve donovan<steve.j.donovan@gmail.com>  wrote:
On Sat, Jul 2, 2011 at 12:53 PM, HyperHacker<hyperhacker@gmail.com>  wrote:
I just noticed that file:write() returns true on success (though the
manual doesn't mention any return value).

Ah, but in 5.2 it does return the file object, allowing chaining:

Lua 5.2.0 (beta)  Copyright (C) 1994-2011 Lua.org, PUC-Rio
= io.write 'hello\n'
hello
file (000007FEFD972AB0)

steve d.



Aha, so my time machine worked! :D

This reminds me of an old English TV series "Doctor Who", who had a time machine in the shape of a classic English telephone booth.

Given the source of your mails, I suspect yours is in the shape of a toaster ;-) :-D

Cheers.
-- Lorenzo