From: Marius Vollmer <mvo@zagadka.ping.de>
Cc: Hilaire Fernandes <hilaire@ext.cri74.org>, guile-user@gnu.org
Subject: Re: Real predicate in C
Date: 19 Jun 2002 13:41:37 +0200 [thread overview]
Message-ID: <87adprh4we.fsf@zagadka.ping.de> (raw)
In-Reply-To: <Pine.LNX.4.21.0206190032590.32479-100000@ariel.lan.telltronics.org>
Steve Tell <tell@telltronics.org> writes:
> On Wed, 19 Jun 2002, Hilaire Fernandes wrote:
>
> > If the gh_real predicate does not exist, what is the proper way to implement it?
>
> Try:
> SCM_REALP(scmobj)
That's unfortunately not the same as 'real?' in Scheme. It is only
true for numbers represented as floating point, but is false for
integers, for example. Yes, it's a mess.
> Unfortunately, it looks like the only way to learn this is to read
> <libguile/numbers.h> (and ignore lots of implementation details).
The manual has scm_real_p right next to 'real?'.
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
next prev parent reply other threads:[~2002-06-19 11:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-09 11:09 Real predicate in C Hilaire Fernandes
2002-06-18 22:02 ` Hilaire Fernandes
2002-06-19 4:47 ` Steve Tell
2002-06-19 11:41 ` Marius Vollmer [this message]
2002-10-04 18:02 ` Thien-Thi Nguyen
2002-06-19 11:30 ` 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=87adprh4we.fsf@zagadka.ping.de \
--to=mvo@zagadka.ping.de \
--cc=guile-user@gnu.org \
--cc=hilaire@ext.cri74.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).