lua-users home
lua-l archive

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


On Tue, 12 Feb 2002 RLake@oxfam.org.uk wrote:

> [...] suppose I'm writing a library which
> defines a predicate function P. What value should P return if the predicate
> is not true, false or nil?

That depends on the kind of logic you are using. If we can assume that
not true is false (an old-style, outdated 2-value logic??) then any
predicate should return only true/false.

-- Roberto