On Monday 15 December 2003 07:37, Stephen McConnell wrote:
>     Fred fred = null;
>     try
>     {
>         fred = (Fred) m_manager.get( "fred" );
>
>         //
>         // do stuff
>         //
>     }
>     catch( Throwable e )
>     {
>         // do other stuff
>     }
>     finally
>     {
>         //
>         // explicit release whatever happens
>         //
>
>         m_manager.release( fred );
>     }
>
> The "finally" clause is gaurantee to run on success or failure.

Sorry, you missed his point.

He said that the above construct is massively verbose, upon I argued that the 
above is not necessary if the "auto reclaimation" is relied on for 
exceptional cases.

Niclas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to