[Top][All Lists]

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

Re: "unbound variable"

From: Andy Wingo
Subject: Re: "unbound variable"
Date: Sun, 08 Jan 2012 18:04:13 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)


You probably figured this one out, many moons ago, but:

On Sun 26 Jun 2011 10:00, "Tomas By" <address@hidden> writes:

> | mapdisplay.scm:36:12: In expression (get-map wg name):
> | mapdisplay.scm:36:12: Unbound variable: get-map
> | ABORT: (unbound-variable)
> | guile> get-map
> | #<primitive-procedure get-map>
> | guile>

later you said:

> | guile> (apropos "get-map")
> | (guile-user): get-map       #<primitive-procedure get-map>

> Any ideas what is happening here? How can I debug it?

The issue is that get-map was defined in guile-user.  But that's not the
root module: it's only the default module at the REPL.

Your mapdisplay module implicitly imported (guile), not (guile-user).

When you are extending Guile, it's best to put primitives in their own
modules, as Peter mentioned.



reply via email to

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