[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Noob question -- On error, exit function and terminate script
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 27 Jun 2011 13:05:35 -0300
> 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.