LLVM Coding Standards
Nick Sabalausky
a at a.a
Tue Apr 12 04:12:13 PDT 2011
"Mafi" <mafi at example.org> wrote in message
news:io19ar$47h$1 at digitalmars.com...
> Am 12.04.2011 00:31, schrieb Spacen Jasset:
>> std::getline(is, line);
>> while (line.size() != 0)
>> {
>> ...some things...
>> std::getline(is, line);
>> }
>
> What's wrong with
> while( std::getline(is, line), (line.size() != 0) ) {
> //... some things
> }
>
> I mean, that's what the comma operator is for.
I'm deathly afraid of the comma operator.
More information about the Digitalmars-d
mailing list