View Single Post
08-18-08, 08:26 PM   #12
Akryn
A Firelord
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 479
my point was that the return value that signifies "out of range" is "true", so your contention that the "false" return value is somehow wrong begs the question -- i.e. that "out of range" should be a non-true value, which it isn't. nil doesn't mean it will fail, 0 does. would you prefer that "not applicable" be -1? the string "not-applicable"? or what? nil seems like a perfectly reasonable choice to me.