comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Destroying objects
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Destroying objects [message #38038 is a reply to message #37981] Mon, 16 February 2004 12:46 Go to previous messageGo to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
> cols = ((meta = result_set -> getMetaData())) -> getColumnCount()
> obj_destroy,meta,result_set
>
> should work. Then again, you have to wonder about returning objects
> whose only purpose is to report a value and then get destroyed. I
> should think something like:
>
> result_set->GetMetaData,COLUMN_COUNT=cols
>
> would be a much cleaner syntax, and not employ any intermediary
> objects to keep track of.

Yes, I agree that the above is much cleaner. In my example, I was using
the Java database connectivity classes directly. Since I only have to
use a subset of the available Java SQL classes and methods, I wrote a
simple Fa�ade for the classes and methods I needed. This ensures that
only the most necessary objects are created in IDL and simplifies the
access overall. I can definitely see myself using the Fa�ade pattern
quite a bit in the coming days....

Mike
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Destroying objects
Next Topic: Re: shading/outlining on surface plot

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 06:39:30 PDT 2025

Total time taken to generate the page: 1.99442 seconds