[gmpi] Re: Plugin Factory Update
- From: Jeff McClintock <jeffmcc@xxxxxxxxxx>
- To: gmpi@xxxxxxxxxxxxx
- Date: Wed, 02 Mar 2005 08:42:28 +1300
Tim Hockin wrote:
> You've changed some of the COM interfaces to take references now instead
> of pointers (specifically to GMPI_GUID). How does that play with COM?
> Does it magically become a pointer in C? The mix of pointers and
refs is weird. Can we make it all consistent one way or another?
Hi Tim, here's Ron's reasoning:
[1] For in arguments, I like to use const references. Pointers are
reserved for out. That gives a very handy way of knowing, at the call
site, what might change and what might not. So:
GMPI_Factory::CreateInstance( const GMPI_GUID& iid, ... )
Note that a reference is the same as a pointer in C, or at least that's
how they do it in COM. They declare the interface as const GUID*, but
the impl can be const GUID&.
Best Regards,
Jeff
----------------------------------------------------------------------
Generalized Music Plugin Interface (GMPI) public discussion list
Participation in this list is contingent upon your abiding by the
following rules: Please stay on topic. You are responsible for your own
words. Please respect your fellow subscribers. Please do not
redistribute anyone else's words without their permission.
Archive: http://www.freelists.org/archives/gmpi
Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe
- References:
- [gmpi] Re: Plugin Factory Update
- From: Angus F. Hewlett
- [gmpi] Re: Plugin Factory Update
- From: Dave Malham
- [gmpi] Re: Plugin Factory Update
- From: Frederic Vanmol
- [gmpi] Re: Plugin Factory Update
- From: Dave Malham
Other related posts:
- » [gmpi] Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
---------------------------------------------------------------------- Generalized Music Plugin Interface (GMPI) public discussion list Participation in this list is contingent upon your abiding by the following rules: Please stay on topic. You are responsible for your own words. Please respect your fellow subscribers. Please do not redistribute anyone else's words without their permission.
- [gmpi] Re: Plugin Factory Update
- From: Angus F. Hewlett
- [gmpi] Re: Plugin Factory Update
- From: Dave Malham
- [gmpi] Re: Plugin Factory Update
- From: Frederic Vanmol
- [gmpi] Re: Plugin Factory Update
- From: Dave Malham