public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
* Macro-generated define ignored?
@ 2013-10-10 15:04 Ito Kazumitsu
  2013-10-10 20:41 ` Per Bothner
  0 siblings, 1 reply; 4+ messages in thread
From: Ito Kazumitsu @ 2013-10-10 15:04 UTC (permalink / raw)
  To: kawa

Could you explain this case?

$ cat test.scm
(define-syntax foo
  (syntax-rules ()
    ((_ obj) (define a (obj:toString)))))
(foo (java.lang.String "aaa"))
(display a)(newline)
$ java -cp kawa-1.14.1-svn.jar kawa.repl --script test.scm
aaa
$ java -cp kawa-1.14.1-svn.jar kawa.repl test.scm
test.scm:5:10: warning - no declaration seen for a
test.scm:5:10: unbound location a
        at gnu.mapping.SharedLocation.get(SharedLocation.java:22)
        at gnu.mapping.ThreadLocation.get(ThreadLocation.java:105)
        at test.run(test.scm:5)
        at gnu.expr.ModuleExp.evalModule2(ModuleExp.java:309)
        at gnu.expr.CompiledModule.evalModule(CompiledModule.java:41)
        at gnu.expr.CompiledModule.evalModule(CompiledModule.java:60)
        at kawa.Shell.runFile(Shell.java:497)
        at kawa.Shell.runFileOrClass(Shell.java:420)
        at kawa.repl.main(repl.java:862)

This issue is not kawa 1.14 specific. The same thing occurs with
kawa 1.11, 1.12 and 1.13.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-10-11  0:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-10 15:04 Macro-generated define ignored? Ito Kazumitsu
2013-10-10 20:41 ` Per Bothner
2013-10-10 23:41   ` Ito Kazumitsu
2013-10-11  0:26     ` Per Bothner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).