Jacques Menu <jacques.m...@tvtmail.ch> writes: > Le 15 janv. 2014 à 17:15:53, David Kastrup <d...@gnu.org> a écrit : > >> Peter Bjuhr <peterbj...@gmail.com> writes: >> >>> On 01/15/2014 04:54 PM, David Kastrup wrote: >>>> Peter Bjuhr <peterbj...@gmail.com> writes: >>>> >>>>> >>>>> I've started using global variables more recently but can highly >>>>> recommend it! >>>> Just don't let any programmers hear that. >>>> >>> >>> David, I'm sorry; I must again ask you what you mean? Is this a joke >>> I'm missing like the previous time with the biblical quote? >> >> <URL:https://en.wikipedia.org/wiki/Global_variable>, 2nd paragraph. > > > Isn’t what you call an LP global variable actually a macro, as in > LaTeX?
No. A macro is a textual replacement with parameters (in Scheme, a "macro" is something entirely different but similar). Something like #(define-music-function ... #{ ... #}) comes close, and there may be some temptation for offering a LilyPond-native syntax for that. At any rate, all proper LilyPond variables are actually global variables. When programming in Scheme, you have recourse to local variables. LilyPond is extensible in Scheme, but it does not in itself constitute a _programming_ language. Assignments are likely the most programming-like constructs it offers, but it's not like you can put them in a loop or something without reverting to Scheme. -- David Kastrup _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user