On 08/20/10 09:26 AM, Garrett D'Amore wrote:
On Fri, 2010-08-20 at 09:23 +1200, Ian Collins wrote:
There is no common C++ ABI. So you get into compatibility concerns
between code built with different compilers (like Studio vs. g++).
Fail.
Which is why we have extern "C". Just about any Solaris driver, library
or kernel module could be implemented in C++ behind the C compatibility
layer and no one would notice.
As long as they don't depend on other features, like the C++ standard
library. Once they consume any external C++ interfaces, you're dead.
Which is what I said further down...
Just adding resource management to C is a huge win. Anything that
removes an excuse to use goto has to be applauded!
--
Ian.
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss