2009/7/31 Patrick McCarty <pnor...@gmail.com>:

> 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@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to