[gmpi] Re: low level API - Abstract Factory summary

  • From: Tim Hockin <thockin@xxxxxxxxxx>
  • To: gmpi@xxxxxxxxxxxxx
  • Date: Fri, 11 Feb 2005 11:09:28 -0800

On Fri, Feb 11, 2005 at 02:05:29PM -0500, Paul Davis wrote:
> >What happens in C++ if you have both
> >
> >typedef struct IGMPI_Plugin {} IGMPI_Plugin
> 
> this is illegal in C++ anyway, because struct IGMPI_Plugin
> automatically turns IGMPI_Plugin into a typename, without any required
> struct keyword.
> 
> if you modify this to be
> 
>   typedef struct someprefixIGMPI_Plugin {} IGMPI_Plugin

my reading of C++ specs is that this is OK because they are the same type.
It's only illegal if the final type resolution yields different results
for the same base name.


----------------------------------------------------------------------
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: //www.freelists.org/archives/gmpi
Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe

Other related posts: