This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project. See the libstdc++ home page for more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: `>>' can't read what `<<' produced: NaNs and Inf


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