guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange behaviour of array?


From: tomas
Subject: Strange behaviour of array?
Date: Tue, 5 Nov 2002 12:57:06 +0100
User-agent: Mutt/1.3.28i

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]