lua-users home
lua-l archive

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


>>>>> "Oliver" == Oliver Kroth <oliver.kroth@nec-i.de> writes:

 Oliver> there are function returning a boolean value, which in case of
 Oliver> failure need to return a third, distinct value. nil. Think of a
 Oliver> function that for a file name returns whether it is a directory
 Oliver> or not.

Ah yes, the classic "true", "false", "FileNotFound"

https://thedailywtf.com/articles/What_Is_Truth_0x3f_

-- 
Andrew.