lua-users home
lua-l archive

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


Vyacheslav Kalitkin wrote:
I want suggest you to add "toboolean()" like existing tonumber() and tostring() functions. I know what "not not X" is same result, but looking toboolean(X) is more clear.

function toboolean(X)
	return not not X
end

:D