lilypond-user
[Top][All Lists]
Advanced

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

Re: Scope of defined names


From: Raphael Mankin
Subject: Re: Scope of defined names
Date: Tue, 3 Dec 2024 07:51:24 +0000
User-agent: Mozilla Thunderbird



On 02/12/2024 18:00, Saul Tobin wrote:
Hi Raphael,

Lilypond variables exist in the same namespace, with the exception that output-def blocks like paper and layout are Scheme modules. Lilypond include just literally inserts the text if the included file.


Thank you. You call them "variables", does that mean that they can be redefined or are they set-once?


Saul


On Sun, Dec 1, 2024, 3:16 PM Raphael Mankin <raph@mankin.org.uk <mailto:raph@mankin.org.uk>> wrote:

    What is the scope of a defined name? If I write, for instance:

    tune = { a b c d }

    Is the scope  of the name "tune" the whole compilation unit, the
    smallest enclosing book, book part, score, bracketed expression ...?
    Can
    it be redefined in an inner or in a parallel scope?

    I have not spotted this issue being addressed in NR.





reply via email to

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