Re: Scope of defined names

2024-12-03 Thread Saul Tobin
Variables can be rebound. On Tue, Dec 3, 2024, 2:52 AM Raphael Mankin wrote: > > > 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 > > i

Re: Scope of defined names

2024-12-02 Thread Raphael Mankin
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 "variabl

Re: Scope of defined names

2024-12-02 Thread Saul Tobin
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 wrote: > What is the scope of

Scope of defined names

2024-12-01 Thread Raphael Mankin
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 t