Re: Variable names of the form section.N.S core dump the parser

2022-05-24 Thread David Kastrup
Aaron Hill writes: > On 2022-05-24 7:40 am, Jean Abou Samra wrote: >> Because there is now a command called \section, so this >> is trying to set a key inside a music function, which is >> not an alist ... This is unfortunate but unavoidable. > > Would it be practical for LilyPond to detect and

Re: Variable names of the form section.N.S core dump the parser

2022-05-24 Thread Jean Abou Samra
Le 24/05/2022 à 18:06, Aaron Hill a écrit : On 2022-05-24 7:40 am, Jean Abou Samra wrote: Because there is now a command called \section, so this is trying to set a key inside a music function, which is not an alist ... This is unfortunate but unavoidable. Would it be practical for LilyPond

Re: Variable names of the form section.N.S core dump the parser

2022-05-24 Thread Aaron Hill
On 2022-05-24 7:40 am, Jean Abou Samra wrote: Because there is now a command called \section, so this is trying to set a key inside a music function, which is not an alist ... This is unfortunate but unavoidable. Would it be practical for LilyPond to detect and warn when a built-in is being

Re: Variable names of the form section.N.S core dump the parser

2022-05-24 Thread Jean Abou Samra
Le 24/05/2022 à 16:40, Jean Abou Samra a écrit :  this is trying to set a key inside a music function I have to correct myself. \section is defined as a music identifier, not a music function. The result is the same though. ___ bug-lilypond

Re: Variable names of the form section.N.S core dump the parser

2022-05-24 Thread Jean Abou Samra
Le 24/05/2022 à 16:37, Trevor Bača a écrit : Hi, The dot-chained variable names that became available in recent versions of LilyPond are great, particularly because they allow numerals: %%% EXAMPLE 1 %%% \version "2.23.8" movement.1.notes = { g'4 } \new Staff { \movement.1.notes } %%% END

Variable names of the form section.N.S core dump the parser

2022-05-24 Thread Trevor Bača
Hi, The dot-chained variable names that became available in recent versions of LilyPond are great, particularly because they allow numerals: %%% EXAMPLE 1 %%% \version "2.23.8" movement.1.notes = { g'4 } \new Staff { \movement.1.notes } %%% END %%% But LilyPond's parser errors when a variable