[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-kawa] [bug #43285] Require vs. load
From: |
Helmut Eller |
Subject: |
[Bug-kawa] [bug #43285] Require vs. load |
Date: |
Tue, 23 Sep 2014 17:49:30 +0000 |
User-agent: |
Opera/9.80 (X11; Linux i686) Presto/2.12.388 Version/12.15 |
URL:
<http://savannah.gnu.org/bugs/?43285>
Summary: Require vs. load
Project: Kawa
Submitted by: ellerh
Submitted on: Tue 23 Sep 2014 05:49:29 PM GMT
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Not sure if this is a bug, but I find this situation surprising.
Suppose we have three files x.scm, y.scm, z.scm with the following
content:
shell> cat x.scm
(require "y.scm")
(load "z.scm")
shell> cat y.scm
(define (foo) 123)
shell> cat z.scm
(foo)
i.e. the file y.scm defines a function foo which is used in file
z.scm; x.scm loads the other two files.
Then Kawa (version 1.14.1 (revision 7749:8062M)) runs into this
problem:
shell> kawa x.scm
z.scm:1:1: warning - no declaration seen for foo
z.scm:1:1: unbound location: foo
at gnu.mapping.SharedLocation.get(SharedLocation.java:22)
at gnu.mapping.DynamicLocation.get(DynamicLocation.java:28)
at atInteractiveLevel$1.run(z.scm:1)
at gnu.expr.ModuleExp.evalModule2(ModuleExp.java:316)
at gnu.expr.ModuleExp.evalModule(ModuleExp.java:217)
at kawa.Shell.run(Shell.java:290)
at kawa.Shell.runFile(Shell.java:522)
at kawa.standard.load.apply2(load.java:67)
at kawa.standard.load.apply1(load.java:27)
at gnu.mapping.Procedure.apply(Procedure.java:135)
at gnu.mapping.Procedure.apply(Procedure.java:118)
at gnu.mapping.CallContext.runUntilDone(CallContext.java:234)
at x.run(x.scm:2)
at gnu.expr.ModuleExp.evalModule2(ModuleExp.java:316)
at gnu.expr.CompiledModule.evalModule(CompiledModule.java:42)
at gnu.expr.CompiledModule.evalModule(CompiledModule.java:61)
at kawa.Shell.runFile(Shell.java:536)
at kawa.Shell.runFileOrClass(Shell.java:445)
at kawa.repl.main(repl.java:881)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43285>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Bug-kawa] [bug #43285] Require vs. load,
Helmut Eller <=