Re: [boost] Re: Next revision of boost::thread & amp; OS error code.

2003-01-16 Thread Peter Dimov
From: "William E. Kempf" <[EMAIL PROTECTED]> > Peter Dimov said: [...] > > But if every level of the call stack does such a translation, there's no > need for who() to begin with. open_file() knows it was thrown by > is_directory(), because it called is_directory(). change_config() knows > it was

Re: [boost] Re: Next revision of boost::thread &amp;amp;amp;amp;amp; amp; OS error code.

2003-01-16 Thread William E. Kempf
Peter Dimov said: > From: "William E. Kempf" <[EMAIL PROTECTED]> >> >> Peter Dimov said: > > [...] > >> >> Knowing that "no such file or directory" was >> >> thrown by "open_file" doesn't help the end user when the action he >> took was to change a configuration option, for instance. >> > >> > The

Re: [boost] Re: Next revision of boost::thread &amp;amp;amp;amp;amp; OS error code.

2003-01-16 Thread Peter Dimov
From: "David Abrahams" <[EMAIL PROTECTED]> > > In general I agree with Bill. The more code gets refactored and > encapsulated, the less useful the name of the throwing function will > be. Take for example boost::throw_exception. I know that one doesn't > really count, because the exception is co

Re: [boost] Re: Next revision of boost::thread &amp;amp;amp;amp;amp; amp; OS error code.

2003-01-16 Thread Peter Dimov
From: "William E. Kempf" <[EMAIL PROTECTED]> > > Peter Dimov said: > > [...] It is exceptions that > > occur in the course in the normal operation that I'm talking about. > > And those, in order to be dealt with in a useful manner, have to be > handled at a point close to the throw point, in order

Re: [boost] Re: Next revision of boost::thread &amp;amp;amp;amp;amp; OS error code.

2003-01-16 Thread Peter Dimov
From: "William E. Kempf" <[EMAIL PROTECTED]> > > Peter Dimov said: [...] > >> Knowing that "no such file or directory" was > >> thrown by "open_file" doesn't help the end user when the action he > >> took was to change a configuration option, for instance. > > > > The end user isn't interested in

Re: [boost] Re: Next revision of boost::thread &amp;amp;amp;amp;amp; amp; OS error code.

2003-01-16 Thread William E. Kempf
Peter Dimov said: > From: "William E. Kempf" <[EMAIL PROTECTED]> >> >> Peter Dimov said: > > [...] > >> > How would you use a call stack to generate an user friendly error >> message? >> >> I wouldn't. User friendly error messages would only be generated >> close to the throw point, where *I* hav

Re: [boost] Re: Next revision of boost::thread &amp;amp;amp;amp;amp; amp; OS error code.

2003-01-16 Thread William E. Kempf
David Abrahams said: > "William E. Kempf" <[EMAIL PROTECTED]> writes: >> And I argue the information that who() is intended to provide is not >> useful. > > I'm not sure that's true in the specific case of the filesystem lib. I think I gave some concrete examples of why it isn't (at least general

Re: [boost] Re: Next revision of boost::thread &amp;amp;amp;amp;amp; OS error code.

2003-01-16 Thread Peter Dimov
From: "William E. Kempf" <[EMAIL PROTECTED]> > > Peter Dimov said: [...] > > How would you use a call stack to generate an user friendly error > > message? > > I wouldn't. User friendly error messages would only be generated close to > the throw point, where *I* have enough contextual informatio

Re: [boost] Re: Next revision of boost::thread&amp;amp;amp;amp; amp; OS error code.

2003-01-16 Thread David Abrahams
"William E. Kempf" <[EMAIL PROTECTED]> writes: > Peter Dimov said: >> From: "William E. Kempf" <[EMAIL PROTECTED]> >>> Peter Dimov said: >>> > >>> > The fact that who() returns a function name is not important; it is >>> not a "mini call stack". A function name is used as a token that >>> identifi

Re: [boost] Re: Next revision of boost::thread &amp;amp;amp;amp;amp; OS error code.

2003-01-16 Thread William E. Kempf
Peter Dimov said: > From: "William E. Kempf" <[EMAIL PROTECTED]> >> Peter Dimov said: >> > >> > The fact that who() returns a function name is not important; it is >> not a "mini call stack". A function name is used as a token that >> identifies the point of failure. What failed? An attempt to ope

Re: [boost] Re: Next revision of boost::thread &amp;amp;amp;amp;OS error code.

2003-01-15 Thread Peter Dimov
From: "William E. Kempf" <[EMAIL PROTECTED]> > Peter Dimov said: > > > > The fact that who() returns a function name is not important; it is not > > a "mini call stack". A function name is used as a token that identifies > > the point of failure. What failed? An attempt to open a file? An attempt >

Re: [boost] Re: Next revision of boost::thread &amp; OS error code.

2003-01-14 Thread Beman Dawes
At 10:36 AM 1/14/2003, David Abrahams wrote: >David Abrahams <[EMAIL PROTECTED]> writes: > >> Beman Dawes <[EMAIL PROTECTED]> writes: >> >>> At 03:29 PM 1/13/2003, David Abrahams wrote: >>> >>> >Remember that it's a bad idea to carry dynamically-allocated >>> >state in an exception object. >>> >

Re: [boost] Re: Next revision of boost::thread &amp;amp;amp;amp; OS error code.

2003-01-14 Thread Beman Dawes
At 04:11 AM 1/15/2003, William E. Kempf wrote: >... > >But the "who" is dependent on higher level information than what's >available to the library. > > Knowing that "no such file or directory" was >thrown by "open_file" doesn't help the end user when the action he took >was to change a configura

Re: [boost] Re: Next revision of boost::thread &amp;amp;amp;amp;OS error code.

2003-01-14 Thread William E. Kempf
Peter Dimov said: > From: "William E. Kempf" <[EMAIL PROTECTED]> >> >> Peter Dimov said: >> > From: "William E. Kempf" <[EMAIL PROTECTED]> >> >> >> >> Might be true for Boost.Filesystem. The path values may be useful >> in some cases, for instance. I'm not 100% sure about the who() >> string, th

Re: [boost] Re: Next revision of boost::thread &amp;amp;amp;OS error code.

2003-01-14 Thread Peter Dimov
From: "William E. Kempf" <[EMAIL PROTECTED]> > > Peter Dimov said: > > From: "William E. Kempf" <[EMAIL PROTECTED]> > >> > >> Might be true for Boost.Filesystem. The path values may be useful in > >> some cases, for instance. I'm not 100% sure about the who() string, > >> though. > > > > The mean

Re: [boost] Re: Next revision of boost::thread &amp;amp;amp;OS error code.

2003-01-14 Thread William E. Kempf
Peter Dimov said: > From: "William E. Kempf" <[EMAIL PROTECTED]> >> >> Might be true for Boost.Filesystem. The path values may be useful in >> some cases, for instance. I'm not 100% sure about the who() string, >> though. > > The meaning of the path values is context dependent, and who() provide

Re: [boost] Re: Next revision of boost::thread &amp; OS error code.

2003-01-14 Thread David Abrahams
David Abrahams <[EMAIL PROTECTED]> writes: > Beman Dawes <[EMAIL PROTECTED]> writes: > >> At 03:29 PM 1/13/2003, David Abrahams wrote: >> >> >Remember that it's a bad idea to carry dynamically-allocated >> >state in an exception object. >> >> I wrestled with that a long time with the Filesystem

Re: [boost] Re: Next revision of boost::thread &amp;amp;OS error code.

2003-01-14 Thread Peter Dimov
From: "William E. Kempf" <[EMAIL PROTECTED]> > > Might be true for Boost.Filesystem. The path values may be useful in some > cases, for instance. I'm not 100% sure about the who() string, though. The meaning of the path values is context dependent, and who() provides the context, although perhap

Re: [boost] Re: Next revision of boost::thread &amp;amp;OS error code.

2003-01-14 Thread William E. Kempf
Beman Dawes said: > At 03:29 PM 1/13/2003, David Abrahams wrote: > > >Remember that it's a bad idea to carry dynamically-allocated state in > an exception object. > > I wrestled with that a long time with the Filesystem Library, and > finally ignored it. The advice is good in general, but there j

Re: [boost] Re: Next revision of boost::thread &amp; OS error code.

2003-01-14 Thread David Abrahams
Beman Dawes <[EMAIL PROTECTED]> writes: > At 03:29 PM 1/13/2003, David Abrahams wrote: > > >Remember that it's a bad idea to carry dynamically-allocated state in > >an exception object. > > I wrestled with that a long time with the Filesystem Library, and finally ignored >it. The advice is > go

Re: [boost] Re: Next revision of boost::thread &amp;OS error code.

2003-01-14 Thread Peter Dimov
From: "Beman Dawes" <[EMAIL PROTECTED]> > > Operating systems provide useful information (error descriptions translated > into the local language, for example) which are easy to supply as readable > strings as part of the exception, and hard for users to supply (because the > user code would be non

Re: [boost] Re: Next revision of boost::thread &amp; OS error code.

2003-01-14 Thread Beman Dawes
At 03:29 PM 1/13/2003, David Abrahams wrote: >Remember that it's a bad idea to carry dynamically-allocated state in >an exception object. I wrestled with that a long time with the Filesystem Library, and finally ignored it. The advice is good in general, but there just didn't seem to be any way

Re: [boost] Re: Next revision of boost::thread &amp;amp; OSerror code.

2003-01-13 Thread David Abrahams
"William E. Kempf" <[EMAIL PROTECTED]> writes: > David Abrahams said: >> "William E. Kempf" <[EMAIL PROTECTED]> writes: >> >>> David Abrahams said: "William E. Kempf" <[EMAIL PROTECTED]> writes: >> People said they wanted it, and the cost is low (one int). I think >> Greg is rig

Re: [boost] Re: Next revision of boost::thread &amp;amp;OS error code.

2003-01-13 Thread William E. Kempf
David Abrahams said: > "William E. Kempf" <[EMAIL PROTECTED]> writes: > >> David Abrahams said: >>> "William E. Kempf" <[EMAIL PROTECTED]> writes: >>> > People said they wanted it, and the cost is low (one int). I think > Greg is right that they wanted to attempt system-dependent > re

Re: [boost] Re: Next revision of boost::thread &amp;amp; OS error code.

2003-01-13 Thread Greg Colvin
At 03:11 AM 1/14/2003, William E. Kempf wrote: >Stefano Delli Ponti said: >> From: "William E. Kempf" <[EMAIL PROTECTED]> >>> David Abrahams said: >>> > "William E. Kempf" <[EMAIL PROTECTED]> writes: >>> > >>> >>> People said they wanted it, and the cost is low (one int). I think >>> Greg is righ

Re: [boost] Re: Next revision of boost::thread &amp; OS error code.

2003-01-13 Thread David Abrahams
"William E. Kempf" <[EMAIL PROTECTED]> writes: > David Abrahams said: >> "William E. Kempf" <[EMAIL PROTECTED]> writes: >> People said they wanted it, and the cost is low (one int). I think Greg is right that they wanted to attempt system-dependent recovery. >>> >>> Well, I can agree th

Re: [boost] Re: Next revision of boost::thread &amp;amp;OS error code.

2003-01-13 Thread Peter Dimov
From: "William E. Kempf" <[EMAIL PROTECTED]> > > If the exception type doesn't fold multiple errors into a single unit, > there's no need for the error code in this situation. RTTI will provide > the same capabilities, even if you don't want to have seperate catch > clauses. It won't, unless you

Re: [boost] Re: Next revision of boost::thread &amp;amp;OS error code.

2003-01-13 Thread William E. Kempf
Stefano Delli Ponti said: > From: "William E. Kempf" <[EMAIL PROTECTED]> >> David Abrahams said: >> > "William E. Kempf" <[EMAIL PROTECTED]> writes: >> > >> >>> People said they wanted it, and the cost is low (one int). I think >> Greg is right that they wanted to attempt system-dependent >> reco

Re: [boost] Re: Next revision of boost::thread &amp;OS error code.

2003-01-13 Thread Stefano Delli Ponti
From: "William E. Kempf" <[EMAIL PROTECTED]> > David Abrahams said: > > "William E. Kempf" <[EMAIL PROTECTED]> writes: > > > >>> People said they wanted it, and the cost is low (one int). I think > >>> Greg is right that they wanted to attempt system-dependent recovery. > >> > >> Well, I can agree

Re: [boost] Re: Next revision of boost::thread &amp;OS error code.

2003-01-13 Thread William E. Kempf
David Abrahams said: > "William E. Kempf" <[EMAIL PROTECTED]> writes: > >>> People said they wanted it, and the cost is low (one int). I think >>> Greg is right that they wanted to attempt system-dependent recovery. >> >> Well, I can agree that the cost is low... so I won't argue too much >> abou

Re: [boost] Re: Next revision of boost::thread

2003-01-13 Thread Peter Dimov
> Beman Dawes said: [...] > > The idea of mandatory "options" is new to me. Wonders never cease. Actually the idea isn't that new. An example of a mandatory C++ option is, for example, function template partial ordering. The compilers have to support it in theory, but in practice some don't, and

Re: [boost] Re: Next revision of boost::thread & OS error code.

2003-01-13 Thread David Abrahams
"William E. Kempf" <[EMAIL PROTECTED]> writes: >> People said they wanted it, and the cost is low (one int). I think Greg >> is right that they wanted to attempt system-dependent recovery. > > Well, I can agree that the cost is low... so I won't argue too much about > including it. I just want t

Re: [boost] Re: Next revision of boost::thread

2003-01-13 Thread William E. Kempf
Beman Dawes said: > At 11:52 AM 1/11/2003, Alexander Terekhov wrote: > > > >"William E. Kempf" wrote: > >[...] > >> > There is some chance you might talk me into accepting two flavors > of threading for the Standard - full threads and threads-lite in > effect. But picking and choosing between

Re: Re: [boost] Re: Next revision of boost::thread &OS error code.

2003-01-13 Thread William E. Kempf
Beman Dawes said: > At 05:15 PM 1/10/2003, William E. Kempf wrote: > > >>... what() // from std::runtime_error. Implementation > provides > >> // a very explicit message, including who(), > path1(), // path2(), and message reported by O/S > (which is // subject to local

Re: Re: [boost] Re: Next revision of boost::thread & OS error code.

2003-01-13 Thread Peter Dimov
From: "Martin Brown" <[EMAIL PROTECTED]> > Hi, > > I would second the approach below. If I can get to > the native error code, then I can use FormatMessage() > or strerror() to get to the platform error message, > localised if necessary. I am not so interested in > the name of the function thro

Re: [boost] Re: Next revision of boost::thread

2003-01-12 Thread Beman Dawes
At 11:52 AM 1/11/2003, Alexander Terekhov wrote: > >"William E. Kempf" wrote: >[...] >> > There is some chance you might talk me into accepting two flavors of >> > threading for the Standard - full threads and threads-lite in effect. >> > But picking and choosing between four or five optional threa

Re: Re: [boost] Re: Next revision of boost::thread & OS error code.

2003-01-12 Thread Beman Dawes
At 05:15 PM 1/10/2003, William E. Kempf wrote: >>... what() // from std::runtime_error. Implementation provides >> // a very explicit message, including who(), path1(), >> // path2(), and message reported by O/S (which is >> // subject

Re: Re: [boost] Re: Next revision of boost::thread & OS error code.

2003-01-12 Thread Martin Brown
Hi, I would second the approach below. If I can get to the native error code, then I can use FormatMessage() or strerror() to get to the platform error message, localised if necessary. I am not so interested in the name of the function throwing the exception - I tend to use a logger with a st

RE: Re: [boost] Re: Next revision of boost::thread & OS error code.

2003-01-10 Thread Glen Knowles
Title: RE: Re: [boost] Re: Next revision of boost::thread & OS error code. From: William E. Kempf [mailto:[EMAIL PROTECTED]] >> ... what() // from std::runtime_error. Implementation provides >>    // a very explicit message, including who(), path1(), >> 

Re: Re: [boost] Re: Next revision of boost::thread & OS error code.

2003-01-10 Thread Dick . Bridges
boost-bounces@list Subject: Re: Re: [boost] Re: Next revision of boost::thread & OS error code.

Re: Re: [boost] Re: Next revision of boost::thread & OS error code.

2003-01-10 Thread Greg Colvin
At 03:15 PM 1/10/2003, William E. Kempf wrote: >> From: Beman Dawes <[EMAIL PROTECTED]> >> At 11:18 AM 1/10/2003, William E. Kempf wrote: >> >> From: David Abrahams <[EMAIL PROTECTED]> >> >> "William E. Kempf" <[EMAIL PROTECTED]> writes: >> >> >> From: Martin Brown <[EMAIL PROTECTED]> >> >> >>

Re: Re: [boost] Re: Next revision of boost::thread & OS error code.

2003-01-10 Thread William E. Kempf
> From: Beman Dawes <[EMAIL PROTECTED]> > At 11:18 AM 1/10/2003, William E. Kempf wrote: > >> From: David Abrahams <[EMAIL PROTECTED]> > >> "William E. Kempf" <[EMAIL PROTECTED]> writes: > >> >> From: Martin Brown <[EMAIL PROTECTED]> > >> >> > >> >> 2. The user needs a localised error message.

Re: Re: [boost] Re: Next revision of boost::thread & OS error code.

2003-01-10 Thread William E. Kempf
> From: [EMAIL PROTECTED] > > Just a query from a user. > > If a localized error message exists, it will very probably be keyed to an > OS error code. *IF* an OS error code were available at the point of > failure, would it be possible and/or advisable to include it as part of the > exception pa

Re: Re: [boost] Re: Next revision of boost::thread

2003-01-10 Thread Greg Colvin
At 02:53 PM 1/10/2003, Beman Dawes wrote: >... > >Some platforms are so limited they fall outside the standard's "hosted" category, and >we don't have to worry about them. > >Some platforms are fully featured, so again no worries. > >What you are worrying about seems to me to be platforms which mi

Re: Re: [boost] Re: Next revision of boost::thread

2003-01-10 Thread William E. Kempf
> From: Beman Dawes <[EMAIL PROTECTED]> > At 07:38 AM 1/10/2003, William E. Kempf wrote: > > >I'm not enough of an expert to say, but I know the issue isn't that > >simple. Let's look just at the priority scheduling for a second. > > > >The single largest request I've had for an addition to Bo

Re: Re: [boost] Re: Next revision of boost::thread & OS error code.

2003-01-10 Thread Beman Dawes
At 11:18 AM 1/10/2003, William E. Kempf wrote: >> From: David Abrahams <[EMAIL PROTECTED]> >> "William E. Kempf" <[EMAIL PROTECTED]> writes: >> >> >> From: Martin Brown <[EMAIL PROTECTED]> >> >> >> >> 2. The user needs a localised error message. >> > >> > Is the textual representation of the except

Re: Re: [boost] Re: Next revision of boost::thread

2003-01-10 Thread Beman Dawes
At 07:38 AM 1/10/2003, William E. Kempf wrote: >I'm not enough of an expert to say, but I know the issue isn't that >simple. Let's look just at the priority scheduling for a second. > >The single largest request I've had for an addition to Boost.Threads is to >add priority support. It's absolute

Re: Re: [boost] Re: Next revision of boost::thread & OS error code.

2003-01-10 Thread Dick . Bridges
mailing list <[EMAIL PROTECTED]> Sent by: cc: boost-bounces@list Subject: Re: Re: [boost] Re: Next revi

Re: Re: [boost] Re: Next revision of boost::thread & OS error code.

2003-01-10 Thread William E. Kempf
> From: David Abrahams <[EMAIL PROTECTED]> > "William E. Kempf" <[EMAIL PROTECTED]> writes: > >> From: David Abrahams <[EMAIL PROTECTED]> What > >> information do you *have* at the point of detection? > > > > Depends on numerous factors, such as the platform it's > > running on and how much time yo

Re: [boost] Re: Next revision of boost::thread & OS error code.

2003-01-10 Thread David Abrahams
"William E. Kempf" <[EMAIL PROTECTED]> writes: >> From: David Abrahams <[EMAIL PROTECTED]> What >> information do you *have* at the point of detection? > > Depends on numerous factors, such as the platform it's > running on and how much time you want to spend > gathering information. We could pro

Re: Re: [boost] Re: Next revision of boost::thread & OS error code.

2003-01-10 Thread William E. Kempf
> From: David Abrahams <[EMAIL PROTECTED]> > What information do you *have* at the point of detection? Depends on numerous factors, such as the platform it's running on and how much time you want to spend gathering information. We could provide a stack trace, a memory dump, a listing of running

Re: [boost] Re: Next revision of boost::thread & OS error code.

2003-01-10 Thread David Abrahams
"William E. Kempf" <[EMAIL PROTECTED]> writes: >> From: David Abrahams <[EMAIL PROTECTED]> >> "William E. Kempf" <[EMAIL PROTECTED]> writes: >> >> >> From: David Abrahams <[EMAIL PROTECTED]> >> >> "William E. Kempf" <[EMAIL PROTECTED]> writes: >> >> >> >> >> From: Martin Brown <[EMAIL PROTECTED]

Re: Re: [boost] Re: Next revision of boost::thread & OS error code.

2003-01-10 Thread William E. Kempf
> From: David Abrahams <[EMAIL PROTECTED]> > "William E. Kempf" <[EMAIL PROTECTED]> writes: > > >> From: David Abrahams <[EMAIL PROTECTED]> > >> "William E. Kempf" <[EMAIL PROTECTED]> writes: > >> > >> >> From: Martin Brown <[EMAIL PROTECTED]> > >> >> > >> >> 2. The user needs a localised error

Re: [boost] Re: Next revision of boost::thread & OS error code.

2003-01-10 Thread David Abrahams
"William E. Kempf" <[EMAIL PROTECTED]> writes: >> From: David Abrahams <[EMAIL PROTECTED]> >> "William E. Kempf" <[EMAIL PROTECTED]> writes: >> >> >> From: Martin Brown <[EMAIL PROTECTED]> >> >> >> >> 2. The user needs a localised error message. >> > Is the textual representation of the exceptio

Re: Re: [boost] Re: Next revision of boost::thread & OS error code.

2003-01-10 Thread William E. Kempf
> From: David Abrahams <[EMAIL PROTECTED]> > "William E. Kempf" <[EMAIL PROTECTED]> writes: > > >> From: Martin Brown <[EMAIL PROTECTED]> > >> > >> 2. The user needs a localised error message. > > > > Is the textual representation of the exception name > > enough? If not, how do you propose a li

Re: [boost] Re: Next revision of boost::thread & OS error code.

2003-01-10 Thread David Abrahams
"William E. Kempf" <[EMAIL PROTECTED]> writes: >> From: Martin Brown <[EMAIL PROTECTED]> >> >> 2. The user needs a localised error message. > > Is the textual representation of the exception name > enough? If not, how do you propose a library provide > such a localised error message? I will wei

Re: [boost] Re: Next revision of boost::thread & OS error code.

2003-01-10 Thread William E. Kempf
> From: Martin Brown <[EMAIL PROTECTED]> > > Hi, > > Regarding the OS error code / exception type debate; I > may have missed something here, so apologies if I > have. Speaking as a user of your wonderful > libraries: > > 1. I need all the data available - the error may be > happening on a com

Re: Re: [boost] Re: Next revision of boost::thread

2003-01-10 Thread William E. Kempf
> From: Beman Dawes <[EMAIL PROTECTED]> > At 02:59 PM 1/9/2003, William E. Kempf wrote: > >> From: Beman Dawes <[EMAIL PROTECTED]> > >> I'm not saying Boost.Threads should take exactly the same approach, > >> but I'd rather not see a lot of optional/conditional features to > >> support operatin

Re: Re: [boost] Re: Next revision of boost::thread

2003-01-10 Thread Stefano Delli Ponti
From: "Beman Dawes" <[EMAIL PROTECTED]> > People will be afraid to use Boost.Threads if they think that even on a > fully-feature operating system some Boost.Threads features may not be > available, or the features may be available with one compiler but not > another. This is exactly my point. Mai

Re: Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread Beman Dawes
At 02:59 PM 1/9/2003, William E. Kempf wrote: >> From: Beman Dawes <[EMAIL PROTECTED]> >> I'm not saying Boost.Threads should take exactly the same approach, >> but I'd rather not see a lot of optional/conditional features to >> support operating systems other than those two O/S families. > >Well,

Re: Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread Peter Dimov
From: "William E. Kempf" <[EMAIL PROTECTED]> > > From: "Peter Dimov" <[EMAIL PROTECTED]> > > From: "William E. Kempf" <[EMAIL PROTECTED]> > > > > > > OK, I've been looking at boost::filesystem_error. Here's my thoughts: > > > > > > boost::filesystem_error could be benefited by splitting it up into

Re: Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread William E. Kempf
> From: "Peter Dimov" <[EMAIL PROTECTED]> > From: "William E. Kempf" <[EMAIL PROTECTED]> > > > From: "Peter Dimov" <[EMAIL PROTECTED]> > > > > (And is it useful to distinguish between memory and other resource > > > errors?) > > > > > > This, I have no ready answer for... but "when in doubt, do wha

Re: Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread Peter Dimov
From: "William E. Kempf" <[EMAIL PROTECTED]> > > From: "Peter Dimov" <[EMAIL PROTECTED]> > > > (And is it useful to distinguish between memory and other resource > > errors?) > > > > This, I have no ready answer for... but "when in doubt, do what POSIX does." > > Why (in regards to "do what POSIX d

Re: Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread William E. Kempf
> From: "Peter Dimov" <[EMAIL PROTECTED]> > From: "William E. Kempf" <[EMAIL PROTECTED]> > > > From: "Peter Dimov" <[EMAIL PROTECTED]> > > > From: "William E. Kempf" <[EMAIL PROTECTED]> > > > > > > > > OK, I've been looking at boost::filesystem_error. Here's my thoughts: > > > > > > > > boost::fil

Re: Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread William E. Kempf
> From: "Peter Dimov" <[EMAIL PROTECTED]> > From: "William E. Kempf" <[EMAIL PROTECTED]> > > > > OK, I've been looking at boost::filesystem_error. Here's my thoughts: > > > > boost::filesystem_error could be benefited by splitting it up into more > > exception types. I know this was suggested in

Re: Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread Peter Dimov
From: "William E. Kempf" <[EMAIL PROTECTED]> > > OK, I've been looking at boost::filesystem_error. Here's my thoughts: > > boost::filesystem_error could be benefited by splitting it up into more > exception types. I know this was suggested in the review, but don't know > what the plan was in rega

Re: Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread Greg Colvin
At 01:32 PM 1/9/2003, William E. Kempf wrote: >> From: "William E. Kempf" <[EMAIL PROTECTED]> >> > From: "Stefano Delli Ponti" <[EMAIL PROTECTED]> >> > From: "William E. Kempf" <[EMAIL PROTECTED]> >> > > > From: "Stefano Delli Ponti" <[EMAIL PROTECTED]> >> > > > From: "David Abrahams" <[EMAIL PROTE

Re: Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread William E. Kempf
> From: "William E. Kempf" <[EMAIL PROTECTED]> > > From: "Stefano Delli Ponti" <[EMAIL PROTECTED]> > > From: "William E. Kempf" <[EMAIL PROTECTED]> > > > > From: "Stefano Delli Ponti" <[EMAIL PROTECTED]> > > > > From: "David Abrahams" <[EMAIL PROTECTED]> > > > > > "William E. Kempf" <[EMAIL PROTECT

Re: Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread William E. Kempf
> From: Beman Dawes <[EMAIL PROTECTED]> > At 11:44 AM 1/9/2003, William E. Kempf wrote: > > >As for conditional compilation... the Boost.Filesystem stuff has no > >need for this, while Boost.Threads has a very definate need. > > The reason that Boost.Filesystem doesn't have conditional compilat

Re: Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread Beman Dawes
At 11:44 AM 1/9/2003, William E. Kempf wrote: >As for conditional compilation... the Boost.Filesystem stuff has no >need for this, while Boost.Threads has a very definate need. The reason that Boost.Filesystem doesn't have conditional compilation is that a design decision was made to limit the l

Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread William E. Kempf
> From: Alexander Terekhov <[EMAIL PROTECTED]> > "William E. Kempf" wrote: > [...] > > > I think that a reasonable requirement that we already mentioned several > > > times is that the ID should be CopyConstructible, Assignable and > > > LessThanComparable, for use in sets/maps. > > > > This misse

Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread David Abrahams
"Peter Dimov" <[EMAIL PROTECTED]> writes: > From: "William E. Kempf" <[EMAIL PROTECTED]> >> > From: David Abrahams <[EMAIL PROTECTED]> >> > "William E. Kempf" <[EMAIL PROTECTED]> writes: >> > >> From: David Abrahams <[EMAIL PROTECTED]> >> > >> "William E. Kempf" <[EMAIL PROTECTED]> writes: >> > >>

Re: Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread William E. Kempf
> From: "Stefano Delli Ponti" <[EMAIL PROTECTED]> > From: "William E. Kempf" <[EMAIL PROTECTED]> > > > From: "Stefano Delli Ponti" <[EMAIL PROTECTED]> > > > From: "David Abrahams" <[EMAIL PROTECTED]> > > > > "William E. Kempf" <[EMAIL PROTECTED]> writes: > > > > > > > > > That's a good idea. So wo

Re: Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread Stefano Delli Ponti
From: "Peter Dimov" <[EMAIL PROTECTED]> > I don't see any drawback in throwing something derived from > std::runtime_error, and not std::runtime_error itself. This lets you provide > more information for clients that catch(thread_error) and still lets others > catch(std::runtime_error). > > As for

Re: Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread Peter Dimov
From: "William E. Kempf" <[EMAIL PROTECTED]> > > From: David Abrahams <[EMAIL PROTECTED]> > > "William E. Kempf" <[EMAIL PROTECTED]> writes: > > >> From: David Abrahams <[EMAIL PROTECTED]> > > >> "William E. Kempf" <[EMAIL PROTECTED]> writes: > > >> > > >> > That's a good idea. So would users pref

Re: Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread Stefano Delli Ponti
From: "William E. Kempf" <[EMAIL PROTECTED]> > > From: "Stefano Delli Ponti" <[EMAIL PROTECTED]> > > From: "David Abrahams" <[EMAIL PROTECTED]> > > > "William E. Kempf" <[EMAIL PROTECTED]> writes: > > > > > > > That's a good idea. So would users prefer new exception types here, > > > > or should I

Re: Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread William E. Kempf
> From: David Abrahams <[EMAIL PROTECTED]> > "William E. Kempf" <[EMAIL PROTECTED]> writes: > >> From: David Abrahams <[EMAIL PROTECTED]> > >> "William E. Kempf" <[EMAIL PROTECTED]> writes: > >> > >> > That's a good idea. So would users prefer new exception types here, > >> > or should I use the

Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread David Abrahams
"William E. Kempf" <[EMAIL PROTECTED]> writes: >> From: David Abrahams <[EMAIL PROTECTED]> >> "William E. Kempf" <[EMAIL PROTECTED]> writes: >> >> > That's a good idea. So would users prefer new exception types here, >> > or should I use the std:: exceptions? >> >> IMO, it's always safer to use

Re: Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread William E. Kempf
> From: "Stefano Delli Ponti" <[EMAIL PROTECTED]> > From: "David Abrahams" <[EMAIL PROTECTED]> > > "William E. Kempf" <[EMAIL PROTECTED]> writes: > > > > > That's a good idea. So would users prefer new exception types here, > > > or should I use the std:: exceptions? > > > > IMO, it's always saf

Re: Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread William E. Kempf
> From: David Abrahams <[EMAIL PROTECTED]> > "William E. Kempf" <[EMAIL PROTECTED]> writes: > > > That's a good idea. So would users prefer new exception types here, > > or should I use the std:: exceptions? > > IMO, it's always safer to use an exception type which provides > more-specific infor

Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread Stefano Delli Ponti
From: "David Abrahams" <[EMAIL PROTECTED]> > "William E. Kempf" <[EMAIL PROTECTED]> writes: > > > That's a good idea. So would users prefer new exception types here, > > or should I use the std:: exceptions? > > IMO, it's always safer to use an exception type which provides > more-specific info

Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread David Abrahams
"William E. Kempf" <[EMAIL PROTECTED]> writes: > That's a good idea. So would users prefer new exception types here, > or should I use the std:: exceptions? IMO, it's always safer to use an exception type which provides more-specific information. -- David Abrahams [EM

Re: [boost] Re: Next revision of boost::thread

2003-01-09 Thread William E. Kempf
> From: Alberto Barbati <[EMAIL PROTECTED]> > William E. Kempf wrote: > > * Are there concerns about using conditional compilation and optional portions of >the library, as POSIX does? I believe this is the only way Boost.Threads and the C++ >standard will be able to provide "portable" threading