Re: Dual nature (was Re: Exceptions and Objects)

2000-08-16 Thread Peter Scott
At 10:56 PM 8/16/00 -0400, Chaim Frenkel wrote: > > "PS" == Peter Scott <[EMAIL PROTECTED]> writes: > >PS> At 07:00 PM 8/16/00 -0400, Chaim Frenkel wrote: > >> Perhaps, throw can carry a return value? > >> > >> throw {"return value"} $exception; > >> If there is an active try/catch context the

Re: Dual nature (was Re: Exceptions and Objects)

2000-08-16 Thread Chaim Frenkel
> "PS" == Peter Scott <[EMAIL PROTECTED]> writes: PS> At 07:00 PM 8/16/00 -0400, Chaim Frenkel wrote: >> Perhaps, throw can carry a return value? >> >> throw {"return value"} $exception; >> If there is an active try/catch context then the $exception would >> be propogated, otherwise $@ would

Re: Dual nature (was Re: Exceptions and Objects)

2000-08-16 Thread Peter Scott
At 07:00 PM 8/16/00 -0400, Chaim Frenkel wrote: >Perhaps, throw can carry a return value? > > throw {"return value"} $exception; >If there is an active try/catch context then the $exception would >be propogated, otherwise $@ would get loaded with $exception and >the return value would be t

Re: Dual nature (was Re: Exceptions and Objects)

2000-08-16 Thread Chaim Frenkel
Perhaps, throw can carry a return value? throw {"return value"} $exception; If there is an active try/catch context then the $exception would be propogated, otherwise $@ would get loaded with $exception and the return value would be the specified value. If not specified then it would be

Re: Dual nature (was Re: Exceptions and Objects)

2000-08-16 Thread Jonathan Scott Duff
On Wed, Aug 16, 2000 at 12:42:24PM -0700, Peter Scott wrote: > At 10:16 AM 8/16/00 -0400, Chaim Frenkel wrote: > >One issue that haven't seen addressed, is how to _not_ have exceptions. > > > >I want to use a core module (non-core can do anything they want) but > >I'd like to write it in procedura

Re: Dual nature (was Re: Exceptions and Objects)

2000-08-16 Thread Peter Scott
At 10:16 AM 8/16/00 -0400, Chaim Frenkel wrote: >One issue that haven't seen addressed, is how to _not_ have exceptions. > >I want to use a core module (non-core can do anything they want) but >I'd like to write it in procedural mode. > > try { > $obj->method... > }

Dual nature (was Re: Exceptions and Objects)

2000-08-16 Thread Chaim Frenkel
> "TO" == Tony Olekshy <[EMAIL PROTECTED]> writes: TO> Using exceptions for failure signalling is a more robust software TO> engineering technique, but only if your exception handling mechanism TO> doesn't "encourage" you to drop exceptions of the floor. Is this proven or just an assertion o