lilypond-auto
[Top][All Lists]
Advanced

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

Re: [Lilypond-auto] Issue 3993 in lilypond: undocument make-simple-closu


From: lilypond
Subject: Re: [Lilypond-auto] Issue 3993 in lilypond: undocument make-simple-closure
Date: Sun, 06 Jul 2014 23:24:56 +0000


Comment #2 on issue 3993 by address@hidden: undocument make-simple-closure
http://code.google.com/p/lilypond/issues/detail?id=3993

The best documentation I see is in misc/ChangeLog 2005-11-02:
* lily/simple-closure.cc: new file. Smob type that allows "grob
  member functions",
      (ly:make-simple-closure FUNC A B)
  is evaluated as (FUNC grob A B). This allows chaining of callbacks
  in various ways.

This is more difficult to use than a Scheme lambda(g), so we should remove make-simple-closure from 'extending'. Removing it from define-grobs.scm would also be helpful and fairly easily.

We should keep the definition of make-simple-closure, because users will have followed the old documentation examples.

The underlying C implementation is still used in lily/grob-closure.cc, to support building composite Scheme functions ('chained callbacks') from the C code.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings



reply via email to

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