logo       

Re: parser variables persist beyond { } scope: msg#00975

lilypond-devel-gnu

Subject: Re: parser variables persist beyond { } scope

2009/7/31 Patrick McCarty <pnorcks@xxxxxxxxx>:

> 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


_______________________________________________
lilypond-devel mailing list
lilypond-devel@xxxxxxx
http://lists.gnu.org/mailman/listinfo/lilypond-devel

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise