lilypond-devel
[Top][All Lists]
Advanced

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

Re: Use define-syntax for define-session[-public] (issue 553480044 by ad


From: Han-Wen Nienhuys
Subject: Re: Use define-syntax for define-session[-public] (issue 553480044 by address@hidden)
Date: Sun, 2 Feb 2020 21:04:43 +0100

On Sun, Feb 2, 2020 at 4:28 PM <address@hidden> wrote:

> > Please see Taylan's reply to the guile-devel list, which gives a
> succinct
> > explanation of why inner functions in macros can never work in the
> Guile 2.x
> > compiler. So we either forego compilation (at a 1.5 sec startup cost)
> or we
> > rewrite the macros to stop using inner functions.
>
> That's what I am trying right now, but you cannot quote outer functions
> as a value either (the problem is the value, not the innerness) so you
> need to do it by name and I would like not to have to export it, so I
> try with (@@ guile-user define-session-internal) but haven't found the
> right incantation yet.  Still fiddling.  If it cannot be avoided, it
> will end up as an exported define-session-internal .

I guess we would have to inline the function (effectively changing it
from function to macro.)

-- 
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen



reply via email to

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