lilypond-devel
[Top][All Lists]
Advanced

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

Re: Aleatoric / modern notation


From: David Kastrup
Subject: Re: Aleatoric / modern notation
Date: Sun, 09 Dec 2012 07:34:13 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

David Nalesnik <address@hidden> writes:

> It turns out that the my definition of event-drul as '(() . ()) was
> the problem.  I substituted (cons '() '()) and everything works just
> fine...even with the file that gave you the issues with multiple
> staves.  I don't understand why '(() . ()) and (cons '() '()) aren't
> equivalent.

The problem is rather that '(() . ()) is equivalent, like eq?, with
itself.  It is a constant, meaning that on a second run, the _same_ cons
cell is being used as in the first run, even if you changed its car and
cdr in the mean time.

(cons '() '()) allocates a new cons cell for every run.  '() itself is
not a pair and so it is immutable and not susceptible to this problem.

-- 
David Kastrup




reply via email to

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