lilypond-devel
[Top][All Lists]
Advanced

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

Re: Creates pure closures (issue 4894052)


From: Reinhold Kainhofer
Subject: Re: Creates pure closures (issue 4894052)
Date: Thu, 18 Aug 2011 13:06:53 +0200
User-agent: KMail/1.13.6 (Linux/2.6.38-10-generic; KDE/4.7.0; i686; ; )

Am Thursday, 18. August 2011, 11:21:59 schrieb address@hidden:
> This is a more extensible way to deal with pure properties.  I'd like
> this patch to be the first step, with the second step being rewriting
> define-grob-properties.scm such that it uses pure closures as much as
> possible.  First, create a procedure:
> 
> #(define-public (pure-wrapper proc)
>    (lambda (grob start end) (proc grob)))
> 
> Then, for example:
> 
> (stencil . ,ly:clef::print)
> 
> becomes
> 
> (stencil . ,(ly:pure-closure ly:clef::print (pure-wrapper
> ly:clef::print)))

Wow, that would be VERY user-unfriendly. Just imagine explaining that to 
someone on -user... 
(or even to the average lilypond developer... I still haven't understood what 
closures are).

Cheers,
Reinhold
-- 
------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org



reply via email to

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