|
From: | Saul Tobin |
Subject: | Re: Scope of defined names |
Date: | Tue, 3 Dec 2024 11:42:27 -0500 |
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.
>
[Prev in Thread] | Current Thread | [Next in Thread] |