Am Thursday, 18. August 2011, 11:21:59 schrieb mts...@gmail.com: > 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, reinh...@kainhofer.com, 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 _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel