chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] [PATCH] handle non-string argument in "assert"


From: Alaric Snell-Pym
Subject: Re: [Chicken-hackers] [PATCH] handle non-string argument in "assert"
Date: Tue, 24 Apr 2012 21:18:39 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120314 Thunderbird/11.0

On 04/24/12 11:40, Felix wrote:
The attached patch changes the "assert" macro to prepend the
line-number of the failed expression only if a literal string is given
as the second argument. A while ago Alaric submitted a different, more
general patch that checks at runtime whether a string is given. I
prefer this slightly more pragmatic solution, as it keeps the size
of the expansion small.

Sorry for keeping this pending for so long.

I heartily approve and endorse this patch. Extra points for sneaking in
and-let*, a macro I have a secret crush on! I'd never thought it also
worked as an "anaphoric when" like that...

ABS

--
Alaric Snell-Pym
http://www.snell-pym.org.uk/alaric/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]