lilypond-devel
[Top][All Lists]
Advanced

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

Re: Can we use +nan.0?


From: Han-Wen Nienhuys
Subject: Re: Can we use +nan.0?
Date: Wed, 6 Apr 2011 10:57:45 -0300

On Tue, Apr 5, 2011 at 2:41 AM, David Kastrup <address@hidden> wrote:
>>> +nan.0 appears fine for that.  But can we rely on it being available on
>>> supported platforms?  I don't find it in the sources of Lilypond, though
>>
>> It sounds a bit fishy especially since alterations are normally
>> rational numbers.  Why not use a non-number value to signify this?
>> Maybe #f ?
>
> Because alterations are compared using `=' which bombs out on `#f'
> (which was actually my first attempt).

I'm without context, but maybe the code should look at the comparands
before comparing?
-- 
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen



reply via email to

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