Am Mittwoch, 14. Januar 2015 13:56 CET, Urs Liska <[email protected]> 
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
> 
 
 
 
 


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

Reply via email to