This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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


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. 

My inclination will be to get it into lidstc++ as an extension. Does
anyone have another idea ? 


-- Gaby


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