lilypond-devel
[Top][All Lists]
Advanced

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

Re: Naming question for get_property, set_property


From: Dan Eble
Subject: Re: Naming question for get_property, set_property
Date: Mon, 10 Feb 2020 19:06:54 -0500

On Feb 10, 2020, at 17:47, David Kastrup <address@hidden> wrote:
> It will look a bit redundant either way with
> 
> grob->Get (Grob, "color");
> or
> grob->grob_set ("stencil", SCM_BOOL_F);

"Yuck" either way.  Removing "property" to shorten the name is not a good 
course of action.

My brainstorming without knowing your reasons does not seem likely to help, but 
what the hey ...

    grob->set<Grob_property> ("stencil", SCM_BOOL_F);

    grob->set (Grob_property ("stencil"), SCM_BOOL_F);

    grob->properties["stencil"] = SCM_BOOL_F; // Too much to ask?
— 
Dan




reply via email to

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