unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Strange behaviour of array?
@ 2002-11-05 11:57 tomas
  2002-11-15  8:12 ` Christopher Cramer
  0 siblings, 1 reply; 4+ messages in thread
From: tomas @ 2002-11-05 11:57 UTC (permalink / raw)


Hi,

while playing around with arrays (see my dumb questions in
guile-user) I stumbled across this:

| guile> (array? #f)
| #f
| guile> (array? 13)
| #f
| guile> (array? 'thisisasymbol)
| #t
| guile> (array? (list 1 2 3 4))
| #t
| guile> (array? 1.5)
| #f
| guile> (array? 3/4)
| #f
| guile> (array? +)
| #t
| guile> (array? 13228374653846507238652384)
| #f

It seems that many non-immediate values returns #t on array?. Looking
at the source (libguile/unif.c, around line 280) kind of semi-confirms
this (as far as I understand this tagging business).

This is against guile 1.6.0 as released (I haven't the time to check
now against CVS for lack of a suitable autoconf :-(

Regards
-- tomas


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


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

end of thread, other threads:[~2002-11-17 15:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-05 11:57 Strange behaviour of array? tomas
2002-11-15  8:12 ` Christopher Cramer
2002-11-15  8:46   ` tomas
2002-11-17 15:29   ` Marius Vollmer

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