stdio line-streaming revisited

kris foo at bar.com
Thu Mar 29 14:56:48 PDT 2007


Andrei Alexandrescu (See Website For Email) wrote:
> kris wrote:
[snip]
>> Nobody claimed that it "guaranteedly" (whatever that means) does in 
>> the general case, so let's please move on?
>>
>> The only thing asserted is that call-chaining is evaluated in 
>> left-to-right order. I think we can safely put that back to bed again
> 
> 
> You wrote this:
> 
> -----------------------
> There used to be a tango/example like this variation:
> 
>     import tango.io.Console;
> 
>     void main()
>     {
>         Cout ("Please enter your name: ").flush;
>         Cout ("Hello, ") (Cin.get);
>     }
> -----------------------
> 
> The code is incorrect. Point blank. Right?

It operates just fine due to the underlying mechanisms, so "point blank" 
is making a big drama out of it. It does not illustrate good practice, 
however. If you wish to write a book about that, be my guest :-D



More information about the Digitalmars-d mailing list