Summary: Not all COM interfaces inherit from IUnknown.
--- Comment #0 from Burton Radons <burton-rad...@shaw.ca> 2010-01-20 19:59:05
Well this is rude. It turns out some COM interfaces - I specifically know of
(http://msdn.microsoft.com/en-us/library/ee419311%28VS.85%29.aspx) - do not
inherit from IUnknown. Since inheritance from IUnknown is how DMD applies its
magic, it means that such interfaces cannot be implemented directly from D.
It would seem preferable to have a "pragma (COM)" or "pragma (com)" attribute
to apply to an interface to cause it and its descendants to be understood to be
COM participants than to inherit from IUnknown, which seems an outdated
The justification from Microsoft's side seems to be that ID3D10Include objects
should be lightweight, so removing IUnknown allows them to be stack objects
since it's impossible for anyone to retain a living reference to them after
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------