[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re[2]: Disabling assert function
- From: Arseny Vakhrushev <arseny.vakhrushev@...>
- Date: Fri, 21 May 2010 02:12:54 +0400
> Here's an assert on esteroids that can be used to avoid concatenations
> for instance:
> do
> local old_assert=assert
> function assert(cond,what,...)
> if cond then
> return what,...
return cond, what, ...
I suppose that would be correct according to the specification.
Anyway, thanks for the code!
// Seny
- References:
- Disabling assert function, Nikolai Kondrashov
- Re: Disabling assert function, Alex Davies
- Re: Disabling assert function, Nikolai Kondrashov
- Re: Disabling assert function, steve donovan
- Re: Disabling assert function, Nikolai Kondrashov
- Re: Disabling assert function, HyperHacker
- Re: Disabling assert function, Nikolai Kondrashov
- Re: Disabling assert function, Marc OMorain
- Re: Disabling assert function, Romulo
- Re: Disabling assert function, steve donovan
- Re: Disabling assert function, Luiz Henrique de Figueiredo