Re: Plans for gnome-vfs replacement



On Seg, 2006-10-02 at 21:03 +0200, Andy Wingo wrote:
> Hi Alex,
> 
> On Wed, 2006-09-20 at 13:52 +0200, Alexander Larsson wrote:
> > > 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).
> 
> I think most languages have their own customary ways of performing IO
> that they'd like to get gnome-vfs to map to, and so the gnome-vfs
> wrappers are custom anyway. (That is at least the case with the guile
> binding, not sure about others.)

  That is true for the Python bindings also.

  But I must emphasize that the main problem of a per-object GError is
that it makes it impossible to ever make the API reentrant/thread-safe.
Unless we want to narrow the API to single threaded usage right now,
let's not go down that path.

-- 
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]