lua-users home
lua-l archive

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

The alternative "syntax" I drift toward with pcall is ecall( fn, ... ) returning error, results...

This assumes that you can't throw an error value of nil and that you probably shouldn't throw false either though the implementation of ecall could clean this up.

Usage should check for an error before looking at the results.