Re: Plans for gnome-vfs replacement
- From: "Gustavo J. A. M. Carneiro" <gjc inescporto pt>
- To: Alexander Larsson <alexl redhat com>
- Cc: "gnome-vfs-list gnome org" <gnome-vfs-list gnome org>, Paolo Borelli <pborelli katamail com>, "gtk-devel-list gnome org" <gtk-devel-list gnome org>, Paolo Maggi <paolo gnome org>, Mathieu Lacage <Mathieu Lacage sophia inria fr>
- Subject: Re: Plans for gnome-vfs replacement
- Date: Wed, 20 Sep 2006 13:31:21 +0100
On Qua, 2006-09-20 at 13:52 +0200, Alexander Larsson wrote:
> On Wed, 2006-09-20 at 12:55 +0200, Mathieu Lacage wrote:
> > On Wed, 2006-09-20 at 12:31 +0200, Alexander Larsson wrote:
> >
> > > Here is my current GInputStream:
> >
> > very nice. Comments below.
> >
> > >
> > > struct _GInputStreamClass
> > > {
> > > GObjectClass parent_class;
> > >
> > > /* Sync ops: */
> > >
> >
> > Do you dislike the idea of moving the GError as a member of the
> > GInputStream instance ?
>
> Its very uncommon, I'm not sure people will expect that. It will also
> break things from language mappings that handle GErrors in a special way
> (say, as an exception).
Even from C, it "hides" the error, making programmers less likely to
correctly realize they need to handle errors. Moreover, having a shared
GError per object makes it impossible to ever make the API thread-safe.
--
Gustavo J. A. M. Carneiro
<gjc inescporto pt> <gustavo users sourceforge net>
The universe is always one step beyond logic.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]