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

Home » Public Forums » archive » Re: HASH makes too many temporaries
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: HASH makes too many temporaries [message #83584 is a reply to message #83583] Tue, 19 March 2013 08:36 Go to previous messageGo to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
Hi superchromix,

Well, both LIST and HASH were really intended to be "scalar" items. The fact that they are implemented as objects, and that you can have arrays of objects, is just a loophole.

Since you can store arbitrary data inside of a list or hash, and you can have nested lists & hashes, theoretically, you shouldn't need to have an array of them.

But, if you really want to have an array of lists or hashes, then I would recommend using TYPENAME to determine whether you have a LIST/HASH. If TYPENAME returns LIST or HASH, then you have a scalar list/hash. If TYPENAME returns OBJREF, then you *know* that you either have a non-list/non-hash scalar object, or you have an array of objects, each of which could be *any* class (not just list or hash).

Cheers,
Chris
ExelisVIS
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: MGlib IDL library
Next Topic: Re: cgPlotS and cgColorBar issues

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

Current Time: Wed Oct 08 19:24:38 PDT 2025

Total time taken to generate the page: 0.00413 seconds