lilypond-user
[Top][All Lists]
Advanced

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

Re: Scope of defined names


From: Saul Tobin
Subject: Re: Scope of defined names
Date: Mon, 2 Dec 2024 13:00:21 -0500

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.

Saul


On Sun, Dec 1, 2024, 3:16 PM Raphael Mankin <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]