Re: gnome-vfsmm started - progress



On Sun, 23 Mar 2003, Murray Cumming wrote:

> I feel that the whole idea of a Handle might be bit C-like. Maybe these
> methods should be part of the Url class instead, or somewhere else.

I haven't looked closely at your c++ code, but this sounds like a strange 
thing to say. In gnome-vfs a handle is a stream instance. What is C-like 
about a stream? And doing stream operations (e.g. write or seek) on a url 
object sounds pretty strange to me.

> There are lots of gnome-vfs functions that have 2 versions, one taking a
> string url and one taking a GnomeVFSUrl instance. I have put the strings
> ones in Handle, and the URL ones in Gnome::Vfs::Url, for now. I'd like
> it if someone else explored this too.

Yes. This string-uri vs uri object mixup is one of the bad parts of the 
gnome-vfs API. I think the current plans are to focus more on uri-strings, 
but we really can't change much of this due to compat reasons.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a fiendish day-dreaming waffle chef on the edge. She's a warm-hearted 
out-of-work research scientist on her way to prison for a murder she didn't 
commit. They fight crime! 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]