Re: GInterfaces and API Stability
- From: Murray Cumming <murrayc murrayc com>
- To: Mike Kestner <mkestner novell com>
- Cc: gtk-devel-list gnome org
- Subject: Re: GInterfaces and API Stability
- Date: Wed, 14 Nov 2007 17:40:44 +0100
On Wed, 2007-11-07 at 14:58 -0700, Mike Kestner wrote:
> While it may not break C ABI/API to add a method to an existing
> GInterface, adding a method to an interface is a clear break in C#.
> must implement all members of a C# interface, so code which previously
> compiled will break when a method is added to an interface.
Can't you just choose not to wrap that vfunc in your C# binding?
I think this is similar to a problem we have in gtkmm. When a GTK+
widget implements an extra GInterface, we can't just add a base class to
our existing C++ class, because that would break ABI in C++. So we just
don't wrap it, and tell people to use the C API when they need to use
that part of the API. It doesn't happen much, luckily.
murrayc murrayc com
] [Thread Prev