lilypond-user
[Top][All Lists]
Advanced

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

Re: Comparing durations in Scheme


From: David Kastrup
Subject: Re: Comparing durations in Scheme
Date: Fri, 06 May 2011 21:57:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

"Christopher R. Maden" <address@hidden> writes:

> On 05/06/2011 01:42 AM, David Kastrup wrote:
>> The guile manual?  eq? compares for identity, not equality of objects.
>> Composite objects constructed independently are not identical.
>
> Ugh... that’s what I was afraid of.
>
> Seems a bit of an oversight to me, then, that there is ly:duration<? but
> not ly:duration=?  I’ll write my own...

I am not sure what information is stored inside of durations, but it is
possible that equal? will do the trick (it does a recursive compare).

-- 
David Kastrup



reply via email to

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