Tom van der Hoeven <[email protected]> writes:

> under 2.16 there were no errors in this
> ----------------
> \version "2.16.2"
> tom = "aap " + "noot"
> \book {
>    \header { title = \tom }
>    \relative {a  b c}
> }
> ----------------
> under 2.18 the expression tom = "aap " + "noot" seems not to be
> allowed

Quite so.  It was an undocumented feature (consequently not being used
almost anywhere) leading to problems elsewhere in the parser.  For
example,

tom = "aap " + "noot"
\tom

lead to an error message because tom was undefined at the point it was
queried since LilyPond could not finish the assignment without checking
whether "noot" was followed by another + here.

Use

tom = #(string-append "aap " "noot")

or

tom = \markup { "aap" "noot" }

or

tom = \markup \concat { "aap " "noot" }

depending on whether you want to concatenate strings programmatically or
markups.

-- 
David Kastrup

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

Reply via email to