Hello R.,

A variable is nothing more than a name for a value, a piece of text in the case 
of Lily.
 
Using it with a backslash ahead of its name leads to this value being inserted 
at this point in the Lily code.

It’s the same as in all programming languages, there no implied magic at at all 
behind the scenes.

The name « global » is a pure convention, which Frescobaldi chose to follow. 
You could name it « blark » if you so preferred.

JM

> Le 26 avr. 2018 à 18:30, Kieren MacMillan <[email protected]> a 
> écrit :
> 
> Hi,
> 
>> it's an uncalled variable. Why should it output anything or impact anything 
>> that's called?
> 
> 1. It doesn’t output anything on its own — only when you call it. What it 
> impacts in that case depends on where and how you call it.
> 
> 2. The input code contained in a variable sets up certain expectations 
> (continuations) for the parser.
> 
>> Is it only durations that can leak out of uncalled variables? What else can 
>> impact outside an uncalled variable data?
> 
> That question is better answered by people like David K, who has a far better 
> grasp of the internals (including the parser) than I do.
> 
> Cheers,
> Kieren.
> ________________________________
> 
> Kieren MacMillan, composer
> ‣ website: www.kierenmacmillan.info
> ‣ email: [email protected]
> 
> 
> _______________________________________________
> lilypond-user mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/lilypond-user


_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to