public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
* duplicate version reference - was #<syntax (scheme base) in #61>
@ 2023-11-03 17:25 Damien Mattei
  2023-11-03 17:35 ` Per Bothner
  0 siblings, 1 reply; 6+ messages in thread
From: Damien Mattei @ 2023-11-03 17:25 UTC (permalink / raw)
  To: kawa mailing list

i just notice this works:
kawa -Dkawa.import.path="."
#|kawa:1|# (import (rename (scheme base) (+ orig+)))
#|kawa:2|# (define + *)
#|kawa:3|# (+ 2 3)
6
#|kawa:4|# (orig+ 2 3)
5

but if i put the statement in a macro, it no more works:
kawa -Dkawa.import.path="."
#|kawa:1|# (define-syntax define-overload-existing-operator
#|.....2|#
#|.....3|#   (syntax-rules ()
#|.....4|#
#|.....5|#     ((_ proc) (import (rename (scheme base) (proc orig-proc))))))
#|kawa:6|# (define-overload-existing-operator +)
/dev/tty:6:1: duplicate version reference - was #<syntax (scheme base) in #61>
/dev/tty:6:1: unknown library (#<syntax#3 rename in #61>)

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

end of thread, other threads:[~2023-11-04 14:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-03 17:25 duplicate version reference - was #<syntax (scheme base) in #61> Damien Mattei
2023-11-03 17:35 ` Per Bothner
2023-11-03 17:57   ` Damien Mattei
2023-11-03 18:29     ` Per Bothner
2023-11-03 23:48       ` Damien Mattei
2023-11-04 14:56         ` Damien Mattei

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).