Re: Plans for gnome-vfs replacement
- From: Alexander Larsson <alexl redhat com>
- To: Philip Van Hoof <spam pvanhoof be>
- Cc: Paolo Borelli <pborelli katamail com>, "gtk-devel-list gnome org" <gtk-devel-list gnome org>, Paolo Maggi <paolo gnome org>, "gnome-vfs-list gnome org" <gnome-vfs-list gnome org>
- Subject: Re: Plans for gnome-vfs replacement
- Date: Mon, 25 Sep 2006 09:16:01 +0200
On Sun, 2006-09-24 at 14:33 +0200, Philip Van Hoof wrote:
> On Wed, 2006-09-20 at 12:31 +0200, Alexander Larsson wrote:
>
> Hey Alex,
>
> Great that you are planning to redesign the VFS.
>
> > Here is my current GInputStream:
> >
> > struct _GInputStreamClass
> > {
> > GObjectClass parent_class;
>
> Using GTypeInterfaceClass here would make it much more easy to let
> library and application developers implement the GInputStream interface
> in a for-their needs suitable way.
I'm well aware of interfaces. In fact my initial version used an
interface for this. However, there are other aspects of the equation
that has to be taken into account to. For instance, using a base class
means you can inherit functionallity from the baseclass. This makes it
much easier to implement things, because we can do the fallback async
wrapper in the base class, and it makes it much easier to do wrapping of
streams.
In fact, if you look at Java and .Net you will see that their streams
are objects too, not interfaces.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl redhat com alla lysator liu se
He's a suave Catholic senator from the Mississippi delta. She's a
strong-willed gold-digging hooker living on borrowed time. They fight crime!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]