On Sat, Feb 24, 2001 at 01:15:59PM -0800, Jon Stevens wrote:
> You still have to put it into a finally in order to close() it.
(afterthough to my previous response).
This is a big bugbear for me about Java and the lack of C++ style
destructors. Memory is not the only resource, and I love the C++ idiom
of doing resource acquisition/release through the constructor and
destructor of a stack allocated object. It works great for
synchronisation (which Java deals with by having a hard-coded language
keyword) and it also works great for things like DB connections, for
which Java has no nice way of doing it.
So you end up with finally clauses and release of resource method calls,
which creates exactly the same issues for other resources that Java
eliminates for memory allocation.
So I don't think any Java DB API will eliminate this need...
--
Sean Legassick
[EMAIL PROTECTED]
Czlowiekiem jestem i nic co ludzkie nie jest mi obce
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]