lilypond-devel
[Top][All Lists]
Advanced

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

Re: PATCH: accessors for note-column's dot-column, accidentals


From: Joe Neeman
Subject: Re: PATCH: accessors for note-column's dot-column, accidentals
Date: Sun, 04 Apr 2010 13:55:32 -0700

On Sun, 2010-04-04 at 13:55 -0600, Carl Sorensen wrote:
> 
> 
> On 4/4/10 12:20 PM, "Joe Neeman" <address@hidden> wrote:
> 
> > On Sun, 2010-04-04 at 11:46 +0200, Nicolas Sceaux wrote:
> >> +LY_DEFINE (ly_note_column__accidentals,
> >> "ly:note-column::accidentals",
> >> +          1, 0, 0, (SCM note_column),
> >> +          "Return the first accidentals found in @var{note_column},
> >> or #f.")
> > 
> > Why not use DECLARE_SCHEME_CALLBACK and DEFINE_SCHEME_CALLBACK instead
> > of LY_DEFINE?
> 
> 
> For purposes of adding to Extending LilyPond, can you explain how one would
> decide when to use LY_DEFINE and when to use DECLARE_SCHEME_CALLBACK and
> DEFINE_SCHEME_CALLBACK?

DECLARE_SCHEME_CALLBACK and DEFINE_SCHEME_CALLBACK are more convenient
when you want a callback to "belong" to a class (eg, any function of the
form ly:foo::bar). I'm not sure if we're 100% consistent on their use,
though.

Cheers,
Joe






reply via email to

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