lua-users home
lua-l archive

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


> I must nevertheless admit that the description for assert is slightly vague:
> 
> "Issues an error when the value of its argument v is false (i.e., nil or 
> false);..."
> 
> I'll suggest to change it to:
> 
> "Calls the function 'error' when the value of its argument v is false 
> (i.e., nil or false);..."

This wording is misleading because assert does not call error. In particular,
the wording you suggest may induce the user to think that if the error function
is redefined then the new definition will be used by assert, which is not true.