[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: Define an alias to a parametrized command
From:       David Kastrup <dak () gnu ! org>
Date:       2023-06-28 19:22:10
Message-ID: 878rc3l7dp.fsf () fencepost ! gnu ! org
[Download RAW message or body]

Simon Albrecht <simon.albrecht@mail.de> writes:

> On 28.06.23 00:54, Valentin Petzel wrote:
>> If you want a real alias (that is a second binding to the same function) you
>> can do
>>
>> #(define acc acciaccatura)
>>
>> This will create another binding to the same object
> AFAIK,
> acc = #acciaccatura
> and likewise
> af = #after
> will have the same effect.

True.  The actual value of \etc is when you want to supply some initial
fixed arguments while keeping the rest variable.

For just creating an alias taking the same number of arguments, the
above way is at least conceptually simpler.

-- 
David Kastrup

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic