[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CLN
On Sun, 13 Feb 2000, George wrote:
> On Sun, Feb 13, 2000 at 12:46:57AM -0800, George wrote:
> > I'm too lazy to find the CLN list, so I'll ask here first. I'm stuck with
> > the changeover because of two issues
> >
> > 1) It's impossible with the defined interface (as I understand it) to figure
> > out if a cl_R is actually an exact number, or if it is an integer in fact. I
> > copied some things from internal CLN headers such as integerp and rationalp
> > but I guess that's wrong to do that. What is the correct way to do this?
> >
> > 2) how do I get a native type out of a cl_R? I know something is an integer
> > and that it will fit in an integer, but I can't get it. I will need to do
> > the same for doubles.
>
> Well a third issue, the current printing methods print to a C++ stream, so if
> I need a string I guess I might needs some weird stream hacks or does C++
> allow me to make a simple stream that is in fact a string?
Yuck! C++ streams are not my thing. I'm sure you would be able to figure
this out though on #c++ (EFNet), the people there are knowledgeble and
have helped me with streams in the past.
> George
>
- References:
- Re: CLN
- From: George <jirka@5z.com>