Re: [boost] Filesystem Library mini-review

2003-01-06 Thread Sean Parent
Beman, Thanks for the clarifications - I thought I had followed the whole thread but I had misunderstood and thought the thrust was to create a new path representation - on 1/6/03 1:51 PM, Beman Dawes at [EMAIL PROTECTED] wrote: > The syntax, semantics, and about everything else about paths that

Re: [boost] Filesystem Library mini-review

2003-01-06 Thread Beman Dawes
At 02:35 PM 1/5/2003, Sean Parent wrote: >on 1/5/03 10:21 AM, Beman Dawes at [EMAIL PROTECTED] wrote: > >> I had a conversation with Bill Plauger, Howard Hinnant, and several other >> library implementors at the last C++ committee meeting, and we agreed on >> a possible approach to the conversio

Re: [boost] Filesystem Library mini-review

2003-01-05 Thread Sean Parent
on 1/5/03 10:21 AM, Beman Dawes at [EMAIL PROTECTED] wrote: > I had a conversation with Bill Plauger, Howard Hinnant, and several other > library implementors at the last C++ committee meeting, and we agreed on a > possible approach to the conversion problem. Conversions between wide and > narrow

Re: [boost] Filesystem Library mini-review

2003-01-05 Thread Peter Dimov
From: "Beman Dawes" <[EMAIL PROTECTED]> > At 10:02 AM 1/5/2003, Peter Dimov wrote: > > >That's an excellent point, and I'm glad that wide paths aren't completely > >out of the question! > > I had a conversation with Bill Plauger, Howard Hinnant, and several other > library implementors at the las

Re: [boost] Filesystem Library mini-review

2003-01-05 Thread Beman Dawes
At 10:02 AM 1/5/2003, Peter Dimov wrote: >From: "Beman Dawes" <[EMAIL PROTECTED]> >> >> At first glance eliminating the dependency on path seems like a win, but >> I'm worried about the future. >> >> I think there is at least some chance that path can be expanded to >> include the ability to hand

Re: [boost] Filesystem Library mini-review

2003-01-05 Thread Peter Dimov
From: "Beman Dawes" <[EMAIL PROTECTED]> > > At first glance eliminating the dependency on path seems like a win, but > I'm worried about the future. > > I think there is at least some chance that path can be expanded to include > the ability to handle wide character names. That's an excellent poin

Re: [boost] Filesystem Library mini-review

2003-01-04 Thread Beman Dawes
At 09:12 AM 12/18/2002, Peter Dimov wrote: >From: "Beman Dawes" <[EMAIL PROTECTED]> >> >> How about these member functions (in addition to what()): >> >> int native_error() const { return m_sys_err; } >> // Note: a value of 0 implies a library (rather than system) error >> >> e

Re: [boost] Filesystem Library mini-review

2002-12-18 Thread Peter Dimov
From: "Beman Dawes" <[EMAIL PROTECTED]> > > How about these member functions (in addition to what()): > > int native_error() const { return m_sys_err; } > // Note: a value of 0 implies a library (rather than system) error > > error_code error() const { return m_err; } > >

Re: [boost] Filesystem Library mini-review

2002-12-17 Thread Peter Dimov
From: "Beman Dawes" <[EMAIL PROTECTED]> > At 11:50 AM 12/17/2002, Peter Dimov wrote: > > >std::cerr << translate_text(ex.error_str()) << std::endl; > > Um... Rather than fatten the interface to filesystem_exception further, the > code->string translation could be provided as a free function. That

Re: [boost] Filesystem Library mini-review

2002-12-17 Thread Beman Dawes
At 11:50 AM 12/17/2002, Peter Dimov wrote: >From: "Beman Dawes" <[EMAIL PROTECTED]> >> At 10:18 AM 12/17/2002, Peter Dimov wrote: >> >> >The main problem is that I don't really know the answer. I can tell you >> >what doesn't work, but I don't know yet what works. :-) >> >> How about these memb

Re: [boost] Filesystem Library mini-review

2002-12-17 Thread Peter Dimov
From: "Beman Dawes" <[EMAIL PROTECTED]> > At 10:18 AM 12/17/2002, Peter Dimov wrote: > > >The main problem is that I don't really know the answer. I can tell you > >what doesn't work, but I don't know yet what works. :-) > > How about these member functions (in addition to what()): > > int

Re: [boost] Filesystem Library mini-review

2002-12-17 Thread Beman Dawes
At 10:18 AM 12/17/2002, Peter Dimov wrote: >The main problem is that I don't really know the answer. I can tell you >what doesn't work, but I don't know yet what works. :-) How about these member functions (in addition to what()): int native_error() const { return m_sys_err; } //

Re: [boost] Filesystem Library mini-review

2002-12-17 Thread Beman Dawes
At 12:42 PM 12/16/2002, Peter Dimov wrote: >> I think that we also need to consider the problem of translating a >> filesystem_error to a localized error message. > >In particular, consider this example of a what() string: > >File system error: move_file(): nonexistent, something_else: The system >

Re: [boost] Filesystem Library mini-review

2002-12-17 Thread Peter Dimov
From: "Vladimir Prus" <[EMAIL PROTECTED]> > Peter Dimov wrote: > >>I think that we also need to consider the problem of translating a > >>filesystem_error to a localized error message. [...] > > Seems like there is quite a few alternatives: > > 1. Perform localization at the point where exception i

Re: [boost] Filesystem Library mini-review

2002-12-17 Thread Vladimir Prus
Peter Dimov wrote: I think that we also need to consider the problem of translating a filesystem_error to a localized error message. In particular, consider this example of a what() string: File system error: move_file(): nonexistent, something_else: The system cannot find the file specified.

Re: [boost] Filesystem Library mini-review

2002-12-16 Thread Vladimir Prus
Beman Dawes wrote: A large number of changes to the Filesystem Library have been committed to the CVS main trunk. Another comment. I notice that the " symbol is not allowed in paths, (as you says previously). But ' is allowed. Should it? - Volodya

Re: [boost] Filesystem Library mini-review

2002-12-16 Thread Matthias Troyer
On Monday, December 16, 2002, at 06:41 PM, Beman Dawes wrote: At 12:12 PM 12/16/2002, Glen Knowles wrote: >I think what he might be asking for is something like: > >make /my/full/path relative to /my/base/dir produces ../../full/path Ah... Thanks... The practical problem is determining if two

Re: [boost] Filesystem Library mini-review

2002-12-16 Thread Peter Dimov
> I think that we also need to consider the problem of translating a > filesystem_error to a localized error message. In particular, consider this example of a what() string: File system error: move_file(): nonexistent, something_else: The system cannot find the file specified. generated by

RE: [boost] Filesystem Library mini-review

2002-12-16 Thread Beman Dawes
At 12:12 PM 12/16/2002, Glen Knowles wrote: >From: Beman Dawes [mailto:[EMAIL PROTECTED]] > >> > While doing so one missing function >> >came to my mind (or did I just overlook it). It came to my mind that >> >some time in the future I might want to create a relative path, given a >> >"complete"

Re: [boost] Filesystem Library mini-review

2002-12-16 Thread Beman Dawes
At 11:58 AM 12/16/2002, David Abrahams wrote: >Beman Dawes <[EMAIL PROTECTED]> writes: > >> At 03:05 AM 12/16/2002, Vladimir Prus wrote: >> >> >Beman Dawes wrote: >> >> A large number of changes to the Filesystem Library have been >> committed >> to the CVS main trunk. >> > >> >Hi Beman, >> >

Re: [boost] Filesystem Library mini-review

2002-12-16 Thread Peter Dimov
From: "Beman Dawes" <[EMAIL PROTECTED]> > At 08:35 AM 12/16/2002, Peter Dimov wrote: > > >To clarify: the current situation requires the filesystem library to > >interpret system-specific error codes. Adopting the POSIX values would > >eliminate that need on some important platforms, with no dow

RE: [boost] Filesystem Library mini-review

2002-12-16 Thread Glen Knowles
Title: RE: [boost] Filesystem Library mini-review From: Beman Dawes [mailto:[EMAIL PROTECTED]] > > While doing so one missing function > >came to my mind (or did I just overlook it). It came to my mind that > >some time in the future I might want to create a rela

Re: [boost] Filesystem Library mini-review

2002-12-16 Thread David Abrahams
Beman Dawes <[EMAIL PROTECTED]> writes: > At 03:05 AM 12/16/2002, Vladimir Prus wrote: > > >Beman Dawes wrote: > >> A large number of changes to the Filesystem Library have been > committed >> to the CVS main trunk. > > > >Hi Beman, > > > >I've some comments: > > > >1. The name 'root_direc

Re: [boost] Filesystem Library mini-review

2002-12-16 Thread Beman Dawes
At 12:34 PM 12/13/2002, Kevin Lynch wrote: >Iain K.Hanson wrote: >>> We already have a standard >>>portable >>>error >>> >scheme. Why reinvent the wheel? Will we do any better? >>> >>>We might. The POSIX errno scheme doesn't seem all that strong to me. >> >> >> Agreed. I've given a fair ammount of

Re: [boost] Filesystem Library mini-review

2002-12-16 Thread Beman Dawes
At 08:35 AM 12/16/2002, Peter Dimov wrote: >To clarify: the current situation requires the filesystem library to >interpret system-specific error codes. Adopting the POSIX values would >eliminate that need on some important platforms, with no downsides. Just to be sure that I understand your prop

Re: [boost] Filesystem Library mini-review

2002-12-16 Thread Beman Dawes
At 06:56 AM 12/16/2002, Matthias Troyer wrote: > >Beman Dawes wrote: >> A large number of changes to the Filesystem Library have been committed >> to the CVS main trunk. > >Hi Beman, > >In a couple of hours I changed all our codes that depend on >boost::filesystem. Although I did not perform a thro

Re: [boost] Filesystem Library mini-review

2002-12-16 Thread Beman Dawes
At 03:05 AM 12/16/2002, Vladimir Prus wrote: >Beman Dawes wrote: >> A large number of changes to the Filesystem Library have been committed >> to the CVS main trunk. > >Hi Beman, > >I've some comments: > >1. The name 'root_directory' is confusing for me. 'directory' implies >you can stick an

Re: [boost] Filesystem Library mini-review

2002-12-16 Thread Peter Dimov
From: "Peter Dimov" <[EMAIL PROTECTED]> I am replying to my own post in order to clarify some points. > From: "Beman Dawes" <[EMAIL PROTECTED]> > > Would you see any value in providing aliases with names that map more > > closely to the POSIX names? > > > > For example, instead of: > > > >

Re: [boost] Filesystem Library mini-review

2002-12-16 Thread Matthias Troyer
Beman Dawes wrote: A large number of changes to the Filesystem Library have been committed to the CVS main trunk. Hi Beman, In a couple of hours I changed all our codes that depend on boost::filesystem. Although I did not perform a through review, I had no problem using the library. I found

Re: [boost] Filesystem Library mini-review

2002-12-16 Thread Vladimir Prus
Beman Dawes wrote: > A large number of changes to the Filesystem Library have been committed > to the CVS main trunk. Hi Beman, I've some comments: 1. The name 'root_directory' is confusing for me. 'directory' implies you can stick anywhere dir there, whilie only "/" is allowed. Unfortu

Re: [boost] Filesystem Library mini-review

2002-12-13 Thread Kevin Lynch
Iain K.Hanson wrote: We already have a standard portable error >scheme. Why reinvent the wheel? Will we do any better? We might. The POSIX errno scheme doesn't seem all that strong to me. Agreed. I've given a fair ammount of though to this over the past year ( whilst working on sockets). The

RE: [boost] Filesystem Library mini-review

2002-12-13 Thread Iain K.Hanson
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Beman Dawes > Sent: 13 December 2002 15:31 > To: Boost mailing list; Boost mailing list > Subject: Re: [boost] Filesystem Library mini-review > > > At 08:19 AM 12

Re: [boost] Filesystem Library mini-review

2002-12-13 Thread Peter Dimov
From: "Beman Dawes" <[EMAIL PROTECTED]> > At 08:19 AM 12/13/2002, Peter Dimov wrote: > > >From: "Beman Dawes" <[EMAIL PROTECTED]> > >> > >> Part of the problem is that there is no guarantee that the macros will > be > >> available in . > > > >Yes, that's true in theory, but in practice, is th

Re: [boost] Filesystem Library mini-review

2002-12-13 Thread Beman Dawes
At 08:19 AM 12/13/2002, Peter Dimov wrote: >From: "Beman Dawes" <[EMAIL PROTECTED]> >> >> Part of the problem is that there is no guarantee that the macros will be >> available in . > >Yes, that's true in theory, but in practice, is there a platform that >doesn't have the macros in ? It is messi

Re: [boost] Filesystem Library mini-review

2002-12-13 Thread Peter Dimov
From: "Beman Dawes" <[EMAIL PROTECTED]> > > Part of the problem is that there is no guarantee that the macros will be > available in . Yes, that's true in theory, but in practice, is there a platform that doesn't have the macros in ? Note that there are two issues here. First, whether the portabl

Re: [boost] Filesystem Library mini-review

2002-12-12 Thread Beman Dawes
At 04:19 PM 12/12/2002, Peter Dimov wrote: >From: "Beman Dawes" <[EMAIL PROTECTED]> >> >> The alternative I considered was to try to map the system specific code >> into a POSIX errno code. However, the macros seemed messy for C++. > >POSIX errno codes were what I meant, yes. On a POSIX implementa

Re: [boost] Filesystem Library mini-review

2002-12-12 Thread Peter Dimov
From: "Beman Dawes" <[EMAIL PROTECTED]> > > The alternative I considered was to try to map the system specific code > into a POSIX errno code. However, the macros seemed messy for C++. POSIX errno codes were what I meant, yes. On a POSIX implementation there would be no mapping. On Win32, you can

Re: [boost] Filesystem Library mini-review

2002-12-12 Thread Beman Dawes
At 02:14 PM 12/12/2002, Peter Dimov wrote: >From: "Beman Dawes" <[EMAIL PROTECTED]> >> The exception class has been given additional functionality to provide a >> portable error code. Etc, etc. > >Q: have you considered using standard errno codes as the portable error >code? If I understand your

Re: [boost] Filesystem Library mini-review

2002-12-12 Thread Peter Dimov
From: "Beman Dawes" <[EMAIL PROTECTED]> > The exception class has been given additional functionality to provide a > portable error code. Etc, etc. Q: have you considered using standard errno codes as the portable error code? ___ Unsubscribe & other cha

[boost] Filesystem Library mini-review

2002-12-11 Thread Beman Dawes
A large number of changes to the Filesystem Library have been committed to the CVS main trunk. These changes close most of the issues which came up during the formal review. Issues still outstanding are listed in the "Do-list" which is part of the documentation. While the core design of the li