unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Reader bug in 1.7
@ 2004-02-20  1:42 Roland Orre
  2004-02-20  3:04 ` Mikael Djurfeldt
  0 siblings, 1 reply; 2+ messages in thread
From: Roland Orre @ 2004-02-20  1:42 UTC (permalink / raw)
  Cc: guile-devel

A uniform vector of type double is read as a vector.

guile-user> (array-prototype #i(1 2 3 4))
()
guile-user> (array-prototype #s(1 2 3 4))
1.0

I'm mostly using 1.7 now (I'm in research, not production) but I hadn't
noticed this until now because most often I'm using float vectors. I
found it when testing one of my uniform vector routines.

	Best regards
	Roland Orre




_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


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

* Re: Reader bug in 1.7
  2004-02-20  1:42 Reader bug in 1.7 Roland Orre
@ 2004-02-20  3:04 ` Mikael Djurfeldt
  0 siblings, 0 replies; 2+ messages in thread
From: Mikael Djurfeldt @ 2004-02-20  3:04 UTC (permalink / raw)
  Cc: bug-guile, djurfeldt, guile-devel

Roland Orre <orre@nada.kth.se> writes:

> A uniform vector of type double is read as a vector.
>
> guile-user> (array-prototype #i(1 2 3 4))
> ()
> guile-user> (array-prototype #s(1 2 3 4))
> 1.0
>
> I'm mostly using 1.7 now (I'm in research, not production) but I hadn't
> noticed this until now because most often I'm using float vectors. I
> found it when testing one of my uniform vector routines.

This is most likely caused by using older versions of libguile.h and
the other Guile includes when compiling your routines.  The mismatch
in binary type identifier between object file and Guile library causes
the effect above.

When I do the above in my 1.7 I, correctly, get:

guile> (array-prototype #i(1 2 3 4))
1/3
guile> (array-prototype #s(1 2 3 4))
1.0

M


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


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

end of thread, other threads:[~2004-02-20  3:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-20  1:42 Reader bug in 1.7 Roland Orre
2004-02-20  3:04 ` Mikael Djurfeldt

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