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

Home » Public Forums » archive » qualifying object classes on the fly
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
qualifying object classes on the fly [message #83633] Fri, 15 March 2013 10:00
kagoldberg is currently offline  kagoldberg
Messages: 26
Registered: November 2012
Junior Member
Is there an accepted method, or an available function, for determining of an object class exists. I'd like to declare an object with the class specified as the argument to obj_new(), and if it fails to find a known class, have the object return as !null or obj_new(). This is the behavior I would like.

o = OBJ_NEW('testclass', /RETURN_NULL_ON_FAIL)

Currently, asking for a non-existent class breaks the program. Some part of me thinks it would be too inelegant to use CATCH for something like this.

Alternately, is there a routine like this:
result = TEST_OBJ_CLASS('testclass') ?

Thanks
[Message index]
 
Read Message
Previous Topic: Re: Annular Zernike polynomials
Next Topic: Creating mesh from XYZ points

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

Current Time: Sat Oct 11 14:22:33 PDT 2025

Total time taken to generate the page: 0.40173 seconds