From: Roland Orre <roland.orre@neurologic.se>
Subject: array? not working since long time
Date: Tue, 12 Oct 2004 15:48:31 +0200 [thread overview]
Message-ID: <1097588911.5281.1008.camel@localhost> (raw)
The predicate (array? arg) hasn't been working for long time.
E.g:
(array? 'hi)
#t
(array? '(list))
#t
The simple code below is what I use, but of course that is too simple
as it doesn't handle the optional prototype. The code in unif.c I don't
understand (that with smobs). Maybe also (array? "string") => #t
Best regards
Roland
SCM_PROC (s_array_p, "array?", 1, 0, 0, scm_array_p);
SCM scm_array_p( SCM what )
{
if (SCM_IMP(what))
return SCM_BOOL_F;
else switch (SCM_TYP7(what))
{
case scm_tc7_fvect:
case scm_tc7_svect:
case scm_tc7_bvect:
case scm_tc7_ivect:
case scm_tc7_uvect:
case scm_tc7_dvect:
case scm_tc7_vector:
return SCM_BOOL_T;
}
return SCM_BOOL_F;
} /* scm_array_p */
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel
next reply other threads:[~2004-10-12 13:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-12 13:48 Roland Orre [this message]
2004-10-19 17:23 ` array? not working since long time Marius Vollmer
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=1097588911.5281.1008.camel@localhost \
--to=roland.orre@neurologic.se \
/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).