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
<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
The universe is always one step beyond logic.
_______________________________________________
gnome-vfs-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-vfs-list