lua-users home
lua-l archive

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


Javier Guerra wrote:
> - nothing() could return no value
> - tostring() gets exactly one paramenter
> 
> therefore,   tostring(nothing()) isn't safe according to the
> documentation, you'd be expected to write tostring(nothing() or nil)

Alternatively you can simply add an extra pair of parenthesis :
tostring((nothing()))