[Top][All Lists]

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

unhandled constant?

From: Han-Wen Nienhuys
Subject: unhandled constant?
Date: Wed, 29 Jan 2020 00:08:17 +0100

Some of the lilypond Scheme files do the following:

(define decl '())
(define (make-var n v) (list "var" n v))
(defmacro define-session (name value)
  (define (inner n v)
    (set! decl
         (make-var n v)
  `(,inner ',name ,value))
(define-session foo 1)
(display decl)

In GUILE 2.2, this yields

;;; WARNING: compilation of /home/hanwen/vc/lilypond/q.scm failed:
;;; unhandled constant #<procedure inner (a b)>

What does this error message mean, and what should I do to address the problem?
Han-Wen Nienhuys - address@hidden -

reply via email to

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