Re: 3rd party Device driver development tool or pure- wdm driver development..Which i

It will be amusing to see the ‘overloading BAD’ response to this example. I
suppose the answer will have to be something like: ‘well we KNOW about THIS
case’.

Overloading certainly can be confusing and almost all books on C++,
especially w.r.t. operator overloading advocate mild-to-heavy restraint in
this area. There is no doubt that it is trivial to write very bad C++ code,
but there is equally no doubt that it is equally easy to write very bad C
code. My only point is that C++ makes it easier to write good code, even if
the code you write looks like C code, and for that reason alone (although
not only for that reason) it is a superior tool.

-----Original Message-----
From: Gera Kazakov [mailto:xxxxx@setengineering.com]
Sent: Friday, November 02, 2001 12:00 PM
To: NT Developers Interest List
Subject: [ntdev] Re: 3rd party Device driver development tool or pure wdm
driver development…Which is the best???

int a,b;
double c,d;

a = a+b;
c = c+d;
a = b+c;

all three '+'s above have semantic difference which
always existed in C. C++ just made this approach
more common.

----- Original Message -----
From: “Jamey Kirby”
To: “NT Developers Interest List”
Sent: Friday, November 02, 2001 8:23 AM
Subject: [ntdev] Re: 3rd party Device driver development tool or pure wdm
driver development…Which is the best???

> >>You see, in C++ the “<<” operator isn’t necessarily a shift
> >>operator.
> The “<<” is just a name, you can leave it bound to the shift operator,
> or you can bind it to something else. Iostreams binds it to stream
> operations, but there’s no reason why I can’t define my own meanings
> within my own classes.<<
>
> I think you have just validated our argument against using OO C++ :slight_smile:
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@setengineering.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@stratus.com To
unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com