guile-user
[Top][All Lists]
Advanced

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

Re: Guile support in GNU make


From: Ludovic Courtès
Subject: Re: Guile support in GNU make
Date: Sun, 15 Jan 2012 23:02:19 +0100
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux)

Hi Paul,

And thanks for the great news!  :-)

Paul Smith <address@hidden> skribis:

> On Sun, 2012-01-15 at 09:51 +0100, Thien-Thi Nguyen wrote:

[...]

>> - The ‘#t => t’ distinguishes the symbol t from others, which feels wrong.
>>   I suggest #t => ""; #f => error.
>
> Hm. The problem with this is that we can't easily use Guile booleans in
> GNU make.  For example, the syntax for make's $(if ...) function is:
>
>         $(if <condition>,<then>[,<else>])
>
> The <condition> is expanded as a makefile expression and if it's empty
> it's considered false.  If it's non-empty it's considered true.

Would it be possible for Make to delay the conversion of SCMs to
strings, and in turn to differentiate between conditions as strings, and
conditions that are SCMs?

In the latter case, it could just apply scm_is_true to the condition.

Thanks,
Ludo’.




reply via email to

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