[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Real predicate in C
From: |
Steve Tell |
Subject: |
Re: Real predicate in C |
Date: |
Wed, 19 Jun 2002 00:47:22 -0400 (EDT) |
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)
Unfortunately, it looks like the only way to learn this is to read
<libguile/numbers.h> (and ignore lots of implementation details).
Or just maybe my last download from http://www.glug.org/docbits/ is too
old.
Steve
> Hilaire
>
> On Sun, 9 Jun 2002 13:09:20 +0200
> Hilaire Fernandes <address@hidden> wrote:
>
> > It looks like the real? predicate is not implemented in the C interface,
> > I got the following error when trying to use it:
> >
> > drgeo_script.cc:141: implicit declaration of function `int gh_real_p(...)'
> >
> >
> > The number? one is implemented but I need to test for real number and
> > complex.
> >
> > Any tips?
> >
> > Hilaire
> >
> > _______________________________________________
> > Guile-user mailing list
> > address@hidden
> > http://mail.gnu.org/mailman/listinfo/guile-user
> >
>
> _______________________________________________
> Guile-user mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/guile-user
>
--
--
Steve Tell address@hidden