From: Damien Mattei <damien.mattei@gmail.com>
To: kawa mailing list <kawa@sourceware.org>
Subject: redefine a variable in a kawa module
Date: Sun, 22 Oct 2023 22:54:03 +0200 [thread overview]
Message-ID: <CADEOadfD0T9839xg=24=S3ZGHTXc-q8ZC2nZXaWX2mQOktF=ZA@mail.gmail.com> (raw)
i suppose Kawa, as Racket don not allow redefinitions in a module:
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/kawa/matrix.scm:37:29:
duplicate declaration of '*'
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/kawa/matrix.scm:35:29:
(this is the previous declaration of '*')
the source code was:
(overload-existing-operator * multiply-matrix-matrix (matrix? matrix?))
(overload-existing-operator * multiply-matrix-vector (matrix? vector?))
redefinition is mandatory with overloading, Guile allow it,
in racket i can use:
(require (rename-in racket/base (proc
orig-proc)))
does Kawa have a mechanism to do that?
next reply other threads:[~2023-10-22 20:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-22 20:54 Damien Mattei [this message]
2023-10-23 11:11 ` Damien Mattei
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADEOadfD0T9839xg=24=S3ZGHTXc-q8ZC2nZXaWX2mQOktF=ZA@mail.gmail.com' \
--to=damien.mattei@gmail.com \
--cc=kawa@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).