[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Instanciable scheme engraver (issue216066)
From: |
Han-Wen Nienhuys |
Subject: |
Re: Instanciable scheme engraver (issue216066) |
Date: |
Sun, 28 Feb 2010 13:11:18 -0300 |
On Sun, Feb 28, 2010 at 12:48 PM, Nicolas Sceaux
<address@hidden> wrote:
>> On Sun, Feb 21, 2010 at 7:10 AM, <address@hidden> wrote:
>>> This is a proof-of-concept for instanciable scheme engravers, with
>>> private instance slots.
>>
>> Looks OK to me; maybe you'd want to pass in the context into the
>> function, so it can do additional switching based on properties?
>
> Isn't the context accessible through the translator argument of
> e.g. the initialize function?
>
> (initialize . ,(lambda (translator)
> (let ((context (ly:translator-context translator)))
> ...
Right, but at that point the alist (and the other functions as well)
are already constructed? Maybe you would want to switch earlier.
--
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen