|
On 10/set/09, at 14:09, steve donovan wrote:
f = assert(io.open(file)) This actually gives a sensible error trace, because if io.open fails it returns two values, nil and an error message. The second parameter of assert() is the message string, so it works as expected.
Doesn't this apply when assert is used as a statement too? -- Andrea