lilypond-devel
[Top][All Lists]
Advanced

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

Re: parser variables persist beyond { } scope


From: Neil Puttock
Subject: Re: parser variables persist beyond { } scope
Date: Fri, 31 Jul 2009 23:20:05 +0100

2009/7/31 Patrick McCarty <address@hidden>:

> I *think* that's true.

Hmm, what about primitive procedures? I wouldn't class these as
identifiers, but they'll also return #t:

#(display (defined? 'car))

=> #t

Since ly:parser-lookup returns EOL if it can't find the variable, the
following is probably a safer bet:

(define (parser-defined? x)
  (not (null? (ly:parser-lookup parser x))))

Regards,
Neil




reply via email to

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