On 2011-09-06 17:39, Steven Schveighoffer wrote:
On Tue, 06 Sep 2011 11:11:27 -0400, Andrei Alexandrescu
Honest, C's openmode strings have been around for so long, they hardly
confuse anyone anymore. I'd rather use "rw" and call it a day.
That's not a valid fopen string ;)
The plus "+" is odd, especially with "a" meaning "append".
And there's that really useless "b" :)
Exactly.
But I think this does *not* invalidate the usage of strings to denote
open mode, it just needs more design. The good thing about it is, we can
augment the string flags and be binary and perfectly backwards compatible.
-Steve
--
/Jacob Carlborg