I am having problems getting simple define-macro to work in Guile 2.
For example, this:
(define-macro when
(lambda (test . branch)
`(if ,test
(begin ,@branch
will give an error:
While compiling expression:
ERROR: Syntax error:
unknown file:8:0: source expression failed to mat
On 12 February 2013 16:15, Akop Pogosian wrote:
> I am having problems getting simple define-macro to work in Guile 2.
>
> For example, this:
>
> (define-macro when
> (lambda (test . branch)
> `(if ,test
> (begin ,@branch
> What's wrong here?
>
This is not the right syntax. F
On Tue 12 Feb 2013 09:15, Akop Pogosian writes:
> (define-macro when
> (lambda (test . branch)
> `(if ,test
> (begin ,@branch
>
> will give an error:
This is a bug. I just fixed it in stable-2.0; thanks for the report.
In the meantime, you can use:
(define-macro (when tes
On 12 February 2013 16:42, Andy Wingo wrote:
> On Tue 12 Feb 2013 09:15, Akop Pogosian writes:
>
>> (define-macro when
>> (lambda (test . branch)
>> `(if ,test
>> (begin ,@branch
>>
>> will give an error:
>
> This is a bug. I just fixed it in stable-2.0; thanks for the report.
On Tue, Feb 12, 2013 at 3:26 AM, Daniel Hartwig wrote:
> On 12 February 2013 16:42, Andy Wingo wrote:
>> On Tue 12 Feb 2013 09:15, Akop Pogosian writes:
>>
>>> (define-macro when
>>> (lambda (test . branch)
>>> `(if ,test
>>> (begin ,@branch
>>>
>>> will give an error:
>>
>> T
Akop Pogosian writes:
> (define-macro when
> (lambda (test . branch)
> `(if ,test
> (begin ,@branch
FWIW, `when' is already available in Guile 2, and define-macro is
generally frowned upon. For these ultra-simple cases, prefer
define-syntax-rule.
--
Ian Price -- shift-reset.
On Mon, 2013-02-11 at 12:03 -0500, Mark H Weaver wrote:
> Richard Shann writes:
> > configure:31783: checking for main in -lregex
> > configure:31812: i686-pc-mingw32-gcc -o conftest.exe
> > -Wno-unused-but-set-variable
> > -I/home/rshann/mxe/usr/i686-pc-mingw32/include conftest.c -lregex
> > -lg
On Tue 12 Feb 2013 10:26, Daniel Hartwig writes:
> On 12 February 2013 16:42, Andy Wingo wrote:
>> On Tue 12 Feb 2013 09:15, Akop Pogosian writes:
>>
>>> (define-macro when
>>> (lambda (test . branch)
>>> `(if ,test
>>> (begin ,@branch
>>>
>>> will give an error:
>>
>> This i
Richard Shann writes:
> On Mon, 2013-02-11 at 12:03 -0500, Mark H Weaver wrote:
>>
>> Can you find out where the 'regcomp' function is?
> Well, I tracked back from the GNU/LilyPond build system - it seems to
> originate in glibc, but in the GNU/LilyPond build system it has been
> extracted out
Mark H Weaver skribis:
> I guess the main thing for us to do upstream is to ensure that
> --disable-shared works properly without such workarounds. Fortunately
> this is mostly not an issue in Guile 2, because the SRFI-1 and SRFI-60
> libraries have been moved into the core. The only remaining
10 matches
Mail list logo