Hi Freeman,
I'm not completely sure about the internals but #(display) procduces its
output in some unpredictable manner. Sometimes, when you (display) some
very large structures it may be totally interrupted by other output (at
least in Frescobaldi).
When you want more reliable output (especially if you want to follow the
order of operations) you could rather use
mylist = #(list 'red random 12)
#(ly:message "My list: ~a" mylist)
Good luck
Urs
Am 12.07.2018 um 20:17 schrieb Freeman Gilmore:
I am using Frescobaldi and studying the Scheme Book. When I compile,
mylist = #( list 'red random 12 )
#(display mylist)
I get two different results in the LilyPond Log, see below. The line,
(red #<primitive-procedure random> 12)
changes positions randomly when compile. Would someone explain?
Thank you, ƒg*/
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Starting lilypond-windows.exe 2.19.81 [Untitled]...
Processing
`c:/users/free/appdata/local/temp/frescobaldi-1jampp/tmpzk5nkr/document.ly
<http://document.ly>'
Parsing...
(red #<primitive-procedure random> 12)
c:/users/free/appdata/local/temp/frescobaldi-1jampp/tmpzk5nkr/document.ly:1
<0>: warning: no \version statement found, please add
\version "2.19.81"
for future compatibility
Success: compilation successfully completed
Completed successfully in 0.9".
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
Starting lilypond-windows.exe 2.19.81 [Untitled]...
Processing
`c:/users/free/appdata/local/temp/frescobaldi-1jampp/tmpzk5nkr/document.ly
<http://document.ly>'
Parsing...
c:/users/free/appdata/local/temp/frescobaldi-1jampp/tmpzk5nkr/document.ly:1
<0>: warning: no \version statement found, please add
\version "2.19.81"
for future compatibility
(red #<primitive-procedure random> 12)
Success: compilation successfully completed
Completed successfully in 0.7".
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user