Re: GInterfaces and API Stability
- From: Alexander Larsson <alexl redhat com>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gtk-devel-list gnome org
- Subject: Re: GInterfaces and API Stability
- Date: Wed, 14 Nov 2007 22:01:30 +0100
On Wed, 2007-11-14 at 17:40 +0100, Murray Cumming wrote:
> On Wed, 2007-11-07 at 14:58 -0700, Mike Kestner wrote:
> [snip]
> > 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#.
> > You
> > must implement all members of a C# interface, so code which previously
> > compiled will break when a method is added to an interface.
> [snip]
>
> 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.
Wow. Combine this "no new interfaces" with the C# "no new methods in
interfaces" and its clearly obvious that we can't make all bindings
happy and still make progress.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]