lilypond-user
[Top][All Lists]
Advanced

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

Re: Attaching an alist to a grob


From: Mattes
Subject: Re: Attaching an alist to a grob
Date: Wed, 14 Jan 2015 14:47:10 +0100
User-agent: SOGoMail 2.2.9a

Am Mittwoch, 14. Januar 2015 13:56 CET, Urs Liska <address@hidden> schrieb:

> OK, I see.
> But somehow it feels wrong that
>
> #(display annotation? some-obj)
>
> doesn't produce #t but the content of "location".
> Should I ignore that feeling?

If you intended to write

 #(display (annotation? some-obj))

then, yes, ignore that feeling. Scheme, like all Lisps (that I know of)  has 
generalized booleans,
so anything that's not explicitly false [1] is considered true. Because of this 
you hardly ever see
a litteral #t in Scheme code.

 Cheers, RalfD

[1] while Scheme considers #f to be the only _false_ value, Common Lisp et al. 
also consider
      the empty list '() as a valse value.


> Urs
>








reply via email to

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