Hi Larry,
Starting in IDL 8.0, it is now possible to create an instance of a class by using the class name as though it were a function. For example, if you have a class "class_name", then calling "class_name( )" should be equivalent to "obj_new( 'class_name' )". There is an exception to this rule: if you have a function and a class name that are the same, as in your example, the function should be called and IDL will not attempt to create an object. Based on your description of your code, I would expect that your "class_name" function would take precedence over the implicit OBJ_NEW call. I have not been able to reproduce the problem you are describing, so I could use your help.
Is your function "class_name" defined in its own file, "class_name.pro", and is it on your IDL_PATH?
Would it be possible for you to send me your code, or, at the very least, send me code of an example that fails? With a reproduce case I can discover the source of the problem much more quickly than if I don't have a reproduce case.
Thanks in advance,
Paul Adams
|