IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New No, I agree with the decision
to avoid the op const char*. Although I think leaving it out is a violation of the design philosophy of C++, which as far as I can tell is to follow "The Principle of Most Surprise".

OTOH, I think its totally stupid to have a whole chunk of streams library implemented in terms of string ([io]stringstream) and then not have a ctor for [io]fstream that allows you to use the string.




That was lovely cheese.

     --Wallace, The Wrong Trousers
New Agreed...but...but...
Yes, the [io]fstream most assuredly should support a string constructor (and a wstring constructor, as well). But don't you know that the [io]fstream stuff was supposed to be a "better stdio that stdio?", and so thererfore would have to support analogs to stdio's [f]open? Maybe they just took the analogs a bit too literally.

Besides, I think what really happened is that in pre-ANSI stream libraries, there was no string class (at least, not a standardized one that anyone could count on being there); instead, there was a mish-mosh of non-standardized ASCII character containers, many of which were called string. By allowing the one true string class to be used as an option, it could well have broken existing compilers implementations of their proprietary garbage. Both X3J11 (ANSI C) and X3J16 (ANSI C++) committees went through hoops to try to minimize breakage of existing code (IMHO, to the detriment of both languages), and it was probably thought that the risk of breakage was too great.

I would expect that C++ V2.0 would fix this rather egregious omission, and to hell with anybody's code that it breaks!
jb4
shrub\ufffdbish (Am., from shrub + rubbish, after the derisive name for America's 43 president; 2003) n. 1. a form of nonsensical political doubletalk wherein the speaker attempts to defend the indefensible by lying, obfuscation, or otherwise misstating the facts; GIBBERISH. 2. any of a collection of utterances from America's putative 43rd president. cf. BULLSHIT

     C++ - the stupidity continues - (tuberculosis) - (15)
         AHHHHH.... Good to see you posting... - (folkert)
         Good to see you again! - (Another Scott)
         TB hola brother! - (deSitter)
         They what? - (ben_tilly) - (10)
             Not quite - (tuberculosis) - (9)
                 Ugly, but not a critical flaw -NT - (ben_tilly) - (4)
                     Pretty much sums up C++ -NT - (JayMehaffey)
                     It's totally against the original spirit - (deSitter)
                     No, just pointlessly inconsistent - (tuberculosis) - (1)
                         Re: No, just pointlessly inconsistent - (deSitter)
                 Per Barney: - (jb4) - (3)
                     It's stupid - (deSitter)
                     No, I agree with the decision - (tuberculosis) - (1)
                         Agreed...but...but... - (jb4)
         Hooray! Todd's back! :) -NT - (FuManChu)

Many of the dead have finished being dead without the assistance of medical staff or fancy equipment.
66 ms