From: Daniel Llorens <daniel.llorens@bluewin.ch>
To: guile-user@gnu.org
Subject: Re: A mess with GOOPS
Date: Tue, 6 Sep 2011 19:07:20 +0200 [thread overview]
Message-ID: <9AD63DD7-6954-476D-AFB0-F2975D4D84CA@bluewin.ch> (raw)
In-Reply-To: <mailman.173.1315324889.11781.guile-user@gnu.org>
>> While compiling expression:
>> ERROR: In procedure vector-length: Wrong type argument in position 1
>>
>
> Oh, and I forgot to mention -- the error appears when I try
> to apply these funtions to regular (non-typed) array with rank > 1.
> It works for typed arrays, vectors and uvecs.
>
> I'll try to look for the reason of this and let you know if I find
> anything interesting.
>
> Regards,
> M.
Hi,
I posted a patch for precisely this error yesterday on bug-guile. It's a trivial bug in module/language/glil/compile-assembly.scm, but I don't know why array.test didn't catch it.
diff --git a/module/language/glil/compile-assembly.scm b/module/language/glil/compile-assembly.scm
index a081822..c76e412 100644
--- a/module/language/glil/compile-assembly.scm
+++ b/module/language/glil/compile-assembly.scm
@@ -856,7 +856,7 @@
(vector-fold2 (lambda (x codes addr)
(receive (subcode addr) (ref-or-dump x i addr)
(values (cons subcode codes) addr)))
- x '() addr)
+ contents '() addr)
(receive (shape addr) (ref-or-dump (array-shape x) i addr)
(values (fold append
(let ((len (vector-length contents)))
--
1.7.1
Regards,
Daniel.
next parent reply other threads:[~2011-09-06 17:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.173.1315324889.11781.guile-user@gnu.org>
2011-09-06 17:07 ` Daniel Llorens [this message]
2011-09-02 19:53 A mess with GOOPS Panicz Maciej Godek
2011-09-03 13:01 ` Andy Wingo
2011-09-05 21:35 ` Panicz Maciej Godek
2011-09-05 22:47 ` Panicz Maciej Godek
2011-09-06 10:17 ` Panicz Maciej Godek
2011-09-06 11:06 ` Panicz Maciej Godek
2012-01-09 17:11 ` Andy Wingo
2012-01-10 12:22 ` Daniel Llorens
2012-01-11 23:57 ` Daniel Llorens
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9AD63DD7-6954-476D-AFB0-F2975D4D84CA@bluewin.ch \
--to=daniel.llorens@bluewin.ch \
--cc=guile-user@gnu.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).