D Conference Tango Phobos
Matti Niemenmaa
see_signature at for.real.address
Sun Sep 16 01:25:20 PDT 2007
Sean Kelly wrote:
> Janice Caron wrote:
>> And what's with the .newline? Isn't "\n" supposed to translate to the
>> platform-specific linebreak convention? Besides, it looks weird,
>> having the newline specified differently from all the other bits of
>> output.
>
> You're free to use "\n" as well--it works in all the cases I've tried.
> The .newline method is similar to std::endl in C++.
"\n" doesn't translate to "\r\n" on Windows, .newline does.
(Also, .newline flushes, but that's beside the point.)
--
E-mail address: matti.niemenmaa+news, domain is iki (DOT) fi
More information about the Digitalmars-d
mailing list