overloading operators for I/O
    Walter Bright 
    newshound at digitalmars.com
       
    Wed Feb 14 14:45:50 PST 2007
    
    
  
Michiel wrote:
> What about the other reason I mentioned? About sending messages to abstract
> objects with a standard operator?
> 
> "I also like how you can send a message to an abstract object. And that can be a
> cout, a cerr, an error console in a GUI, or something else. Same thing the other
> way around."
> 
> I even missed an important one. File I/O.
This can be done using variadic functions or tuples.
> To sum up: I love D. But I also like the streaming operator.
I didn't expect to convince you <g>.
    
    
More information about the Digitalmars-d
mailing list