From: Damien Mattei <damien.mattei@gmail.com>
To: kawa mailing list <kawa@sourceware.org>
Subject: Re: redefine a variable in a kawa module
Date: Mon, 23 Oct 2023 13:11:11 +0200 [thread overview]
Message-ID: <CADEOadfDCb3bPcCfLZ7DJfBokVSPqL=6vhjL6UvdD+Dmth+PSQ@mail.gmail.com> (raw)
In-Reply-To: <CADEOadfD0T9839xg=24=S3ZGHTXc-q8ZC2nZXaWX2mQOktF=ZA@mail.gmail.com>
finally not a problem of redefinition.... investigating my code....
On Sun, Oct 22, 2023 at 10:54 PM Damien Mattei <damien.mattei@gmail.com> wrote:
>
> 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?
prev parent reply other threads:[~2023-10-23 11:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-22 20:54 Damien Mattei
2023-10-23 11:11 ` Damien Mattei [this message]
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='CADEOadfDCb3bPcCfLZ7DJfBokVSPqL=6vhjL6UvdD+Dmth+PSQ@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).