DORON:
Thanks,
MM
>> xxxxx@microsoft.com 2006-04-27 12:16 >>>
Because you can’t tell what the hell is going on by looking at the
calling code (vs the impl).
CFoo f;
DoSomething(f);
Is that a ref and f has changed afterward? Was f passed by value? Is
that a const ref and f has not changed? No references is purely so
that
when you look at the callsite of a function, you know it is going to
change the object, e.g.
DoSomething(&f);
This is purely a coding convention, it has nothing to do with the
compiler.
d
– I can spell, I just can’t type.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Martin O’Brien
Sent: Thursday, April 27, 2006 6:29 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Placement new operator in a driver
DORON:
Why no references? Is that just a semantics/convenience/convention
(i.
e. - because it doesn’t explicitly look like a pointer) issue, or is
it
a compiler/kernel thing?
Just curious.
MM
>> xxxxx@microsoft.com 2006-04-26 23:27 >>>
Borrow? You surely jest ;). Design patterns are patterns for a
reason, they are useful. Yes, the underlying implementation of KMDF
is
written in C++, but under some very strict rules. No references, no
templates, no overloaded operators. Basically, we use C++ for vtables
and vtables only.
d
– I can spell, I just can’t type.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of hanzhu
Sent: Wednesday, April 26, 2006 9:14 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Placement new operator in a driver
Is KMDF developed in C++ as Mark has pointed out?
I always suppose that KMDF has just borrowed some ideas and design
patterns from the OO programming world!!! 
Doron, Can you clarify this question for our newbies?
Best Regards,
hanzhu
Mark Roddy :
By the way, several Microsoft kernel components are developed using
C++, for
example KMDF.
=====================
Mark Roddy DDK MVP
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com
> C has been designed as lower lever, closer to machine
> semantics language.
> C++ has been designed for usermode. The “better C” approach
> did not work
> for many reasons mentioned in this thread, especially by Don Burn.
> The Embedded C++ project failed.
> Do you see much C++ in Linux kernel? nope.
> It’s time for conclusions… C++ just doesn’t have it.
> Maybe C# will be the next “better C”.
>
> Regards,
> --PA
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online
> at http://www.osronline.com/page.cfm?name=ListServer
>
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer