stdio line-streaming revisited

Lars Ivar Igesund larsivar at igesund.net
Thu Mar 29 02:09:51 PDT 2007


Roberto Mariottini wrote:

> kris wrote:
>> Sean Kelly wrote:
>> [snip]
>>> I must be missing something.  Why is the following not acceptable?
>>>
>>>     import tango.io.Console;
>>>
>>>     void main()
>>>     {
>>>         char[] name;
>>>         Cout( "Please enter your name: " ).flush;
>>>         Cin.nextLine( name );
>>>         Cout( "Hello, " )( name )( "!" );
>>>     }
>> 
>> 
>> 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);
>>     }
> 
> I think I'll take a look at Tango.
> Is there a tutorial, or better an examples library?
> 
> Ciao

The website over at http://www.dsource.org/projects/tango has various
documentation (and also a few tutorials). You will also find quite a few
small examples in the downloads.

-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource, #d.tango & #D: larsivi
Dancing the Tango



More information about the Digitalmars-d mailing list