|
On 25/06/2011 20.52, Rebel Neurofog wrote:
Hi!
[snip]
It is known that error message is evaluated even if assertion succeeds. It could be easy to replace it with lazy evaluation like this: assert (1 == 3, function () return "Reactor response failure: "..complex_call (13) end)
You already can do that (almost): assert( 1 == 3 or error( "Reactor response failure:"..complex_call (13) ) )Yes, "error" will never return so assert is never called if the assertion fails,
-- Lorenzo