lua-users home
lua-l archive

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


> 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