On Sun, Feb 28, 2010 at 12:48 PM, Nicolas Sceaux
<nicolas.sce...@gmail.com> wrote:

>> On Sun, Feb 21, 2010 at 7:10 AM,  <nicolas.sce...@gmail.com> 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 - han...@xs4all.nl - http://www.xs4all.nl/~hanwen


_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to