|
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
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.
[Prev in Thread] | Current Thread | [Next in Thread] |