[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
(cons
(make-var n v)
decl))
)
`(,inner ',name ,value))
(define-session foo 1)
(display decl)
(newline)
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 - http://www.xs4all.nl/~hanwen
- unhandled constant?,
Han-Wen Nienhuys <=