Re: overload operator<<
- From: Rick Elbers <rick.elbers@xxxxxxxxx>
- Date: Fri, 06 May 2005 20:24:12 GMT
Soren,
Interestingly people who used to cout a lot might
feel the same way about your table << row;
Rick
On Fri, 29 Apr 2005 09:44:55 +0200, "Søren Reinke"
<soren@xxxxxxxxxxxxxxxxxx> wrote:
>>
>> puh!
>> table << row ;
>> is much cleaner looking than:
>> table.Add( row ) ;
>
>I must disagree.
>
><< and >> is used for bitshiftning not adding or something like that.
>
>table.Add(row);
>Tells you easilly readable that you 'Add' a 'row' to a 'table'
>
>But off course it is a matter of choice.
>
>But in my oppinion overloading is a two edge sword, it can be a good thing
>but also a very bad thing.
>
>Best regards
>Søren Reinke
>www.Xray-Mag.com
>A free Dive Magazine, 99 pages with huge section about diving in North
>America
>Download it in PDF
>
.
- Follow-Ups:
- Re: overload operator<<
- From: Jon Skeet [C# MVP]
- Re: overload operator<<
- Prev by Date: Re: How can I associate a value with an enum type?
- Next by Date: Re: How can I associate a value with an enum type?
- Previous by thread: How can I associate a value with an enum type?
- Next by thread: Re: overload operator<<
- Index(es):
Loading