chicken-hackers
[Top][All Lists]
Advanced

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

[Chicken-hackers] [PATCH] Return the result of EXP from (assert EXP)


From: Evan Hanson
Subject: [Chicken-hackers] [PATCH] Return the result of EXP from (assert EXP)
Date: Fri, 15 Nov 2013 15:40:45 +1300

The documentation for `assert` says the result of (assert EXP) is EXP,
but it currently expands to (##core#undefined). This patch makes the
code behave like the docs say, since that's the more useful behavior
IMHO.

For reasons I don't fully grok yet, this causes the scrutinizer to catch
an additional case in scrutiny-tests-2.scm, which is indeed a valid
scrutiny ("scrutin", single unit of scrutiny?), so I've added that to
the expected output as well; please let me know if you see anything
obviously funky going on there.

Cheers,

Evan

Attachment: 0001-Return-the-result-of-EXP-from-assert-EXP.patch
Description: Text document


reply via email to

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