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

  • From: Tim Hockin <thockin@xxxxxxxxxx>
  • To: gmpi@xxxxxxxxxxxxx
  • Date: Mon, 7 Feb 2005 16:06:07 -0800

On Tue, Feb 08, 2005 at 12:55:45PM +1300, Jeff McClintock wrote:
> i.e. it can't just return something, you've got to pass in a 
> pointer-to-something.
> 
> That will work, but is a little awkward.  What do people think?

I see why it is done, I just find it a bit fugly.  I am all for
consistent APIs, but sometimes it really is natural to return a value.

For example, getting flags can't fail.  You always have flags, even if
there are no flags set.


----------------------------------------------------------------------
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: