lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LilyPond boolean syntax? \true and \false


From: Marc Hohl
Subject: Re: LilyPond boolean syntax? \true and \false
Date: Wed, 6 Jan 2016 08:41:46 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0

Am 05.01.2016 um 21:22 schrieb Thomas Morley:
[...]
To illustrate. Look at the output from the following compiled in a ly-file:

true = ##t
false = ##f

#(define v1 (vector true false true))
#(define v2 #(true false true))

#(newline)
#(write-me "v1 " v1)
#(write-me "v2 " v2)

#(write-me "(vector-ref v1 1) is: " (vector-ref v1 1))
#(write-me "(vector-ref v2 1) is: " (vector-ref v2 1))

#(if (vector-ref v1 1)
      (write-me "test condition for v1 " "condition is true")
      (write-me "test condition for v1 " "condition is false"))

#(if (vector-ref v2 1)
      (write-me "test condition for v2 " "condition is true")
      (write-me "test condition for v2 " "condition is false"))

No chance to make it work this way, I'd say

Ok, I see the problem. Following the whole discussion, I think it is indeed the best way to just stay with ##t and ##f.

Thanks to David for sharing his insights and to Thomas Morley for the
use case above!


Marc




reply via email to

[Prev in Thread] Current Thread [Next in Thread]