Operator overloading -- lets collect some use cases

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Dec 30 21:24:48 PST 2008


John Reimer wrote:
> Hello Walter,
> 
>> Don wrote:
>>
>>> But I know of very few reasonable non-mathematical uses. In C++, I've
>>> seen them used for iostreams, regexps,
>>>
>> Those are not reasonable non-mathematical uses. I've hated C++
>> iostreams from their very beginning. I never use them outside of test
>> code.
>>
>> I think Andrei got it right with writefln().
>>
> 
> 
> What does 'fln' stand for?  Is that something like "Format with LiNe 
> carriage return"?  
> With apologies to Andrei, I can't agree that it's pretty, but I suppose 
> it works. :)

The name and original implementation of writefln are Walter's and 
predate my tenure with D. I just defined write() and writeln().

Andrei



More information about the Digitalmars-d mailing list