This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: `>>' can't read what `<<' produced: NaNs and Inf
- To: Gabriel Dos Reis <Gabriel.Dos-Reis@cmla.ens-cachan.fr>
- Subject: Re: `>>' can't read what `<<' produced: NaNs and Inf
- From: Joao Cardoso <jcardoso@inescn.pt>
- Date: Wed, 31 Mar 1999 00:22:13 +0100
- CC: libstdc++@sourceware.cygnus.com
- Organization: INESC
- References: <3700FBC4.3C4C5EFB@inescn.pt> <flu2v24s5a.fsf@poivre.cmla.ens-cachan.fr>
Gabriel Dos Reis wrote:
>
> Joao Cardoso <jcardoso@inescn.pt> writes:
>
> | Hi,
> |
> | [I have recently put a question on the egcs mailing list, but this is
> | the correct place to do it, I think.]
> |
> | `<<' generate special tokens when outputing float/doubles that are
> | not numbers (NaN) or are infinity (Inf).
> | However, `>>' can't read those tokens. Is this deliberate?
>
> I don't think so. Personnally, I came accross, a few days ago, the
> question of whether libtsdc++ should allow this or not--that was when
> reading LIA-1. A quick look at clause 2 (Lexical conventions) lets me
> under the impression that allowing reading NaN, Inf or so should be
> flagged as extensions.
>
> |
> | If I submit a patch to make libstdc++ read what it output, will it be
> | accepted (in principle)? I think that no standard specify it...
>
> If you have a patch, then send it to the list.
I and Artur <ajc@inescn.pt> are working on it. Then you guys will decide
if it will be an extension or whatever. OK?
>
> My inclination will be to get it into lidstc++ as an extension. Does
> anyone have another idea ?
>
> -- Gaby
--
Joao Cardoso, INESC | e-mail:
R. Jose Falcao 110 | tel: + 351 2 2094345
4050 Porto, Portugal | fax: + 351 2 2008487