Re: [Chicken-hackers] [PATCH] Allow assert to accept an arbitrary expression as the message

2012-03-16 Thread Felix
From: Alaric Snell-Pym Subject: Re: [Chicken-hackers] [PATCH] Allow assert to accept an arbitrary expression as the message Date: Mon, 12 Mar 2012 16:39:10 + > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 03/12/2012 02:03 PM, Felix wrote: > >>> Tell you w

Re: [Chicken-hackers] [PATCH] Allow assert to accept an arbitrary expression as the message

2012-03-12 Thread Alaric Snell-Pym
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/12/2012 02:03 PM, Felix wrote: >> Tell you what, shall I make it say (if (string? msg) msg "> assertion message was supplied>") or something like that? I'll think of >> better wording. > > At run-time (I'd not recommend this, as it produces more

Re: [Chicken-hackers] [PATCH] Allow assert to accept an arbitrary expression as the message

2012-03-12 Thread Felix
From: Alaric Snell-Pym Subject: Re: [Chicken-hackers] [PATCH] Allow assert to accept an arbitrary expression as the message Date: Mon, 12 Mar 2012 12:12:20 + > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 03/12/2012 11:52 AM, Felix wrote: > >> In the case of

Re: [Chicken-hackers] [PATCH] Allow assert to accept an arbitrary expression as the message

2012-03-12 Thread Alaric Snell-Pym
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/12/2012 11:52 AM, Felix wrote: > In the case of "assert", I think it is not too much to expect the user > to pass a string. Tell you what, shall I make it say (if (string? msg) msg "") or something like that? I'll think of better wording. > >

Re: [Chicken-hackers] [PATCH] Allow assert to accept an arbitrary expression as the message

2012-03-12 Thread Felix
From: Alaric Snell-Pym Subject: Re: [Chicken-hackers] [PATCH] Allow assert to accept an arbitrary expression as the message Date: Mon, 12 Mar 2012 10:21:57 + > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 03/10/2012 11:54 AM, Felix wrote: > >> Unfortunately

Re: [Chicken-hackers] [PATCH] Allow assert to accept an arbitrary expression as the message

2012-03-12 Thread Alaric Snell-Pym
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/10/2012 11:54 AM, Felix wrote: > Unfortunately "->string" might not always be available in code that uses > the "assert" syntax. It would be nice if "assert" only depended on the > base library. Ah-hah! Do you have a suggestion, or shall I do m

Re: [Chicken-hackers] [PATCH] Allow assert to accept an arbitrary expression as the message

2012-03-10 Thread Felix
From: Alaric Snell-Pym Subject: [Chicken-hackers] [PATCH] Allow assert to accept an arbitrary expression as the message Date: Thu, 08 Mar 2012 21:11:40 + > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > ...which is evaluated at assertion failure time! > > I

[Chicken-hackers] [PATCH] Allow assert to accept an arbitrary expression as the message

2012-03-08 Thread Alaric Snell-Pym
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ...which is evaluated at assertion failure time! I undid the check that the supplied MSG is a string at expansion time, and instead placed the string-append that combines it with the line number into the result of expansion. For safety, I added expli