| OBJ_HASMETHOD [message #42757] |
Fri, 25 February 2005 09:47 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
Oh, oh. I discovered quite by accident (I assumed it would
be there) that there is a function OBJ_HASMETHOD that can
be used to tell if an object has a particular method or not.
But I can't find any reference to it in the IDL documentation.
obj = Obj_New('trackball')
Print, Obj_HasMethod(obj, 'UPDATE')
1
Does anyone know anything about this function? In particular,
I would like to know when it was introduced. I don't spend
a *great* deal of time thinking about backward compatibility,
but in this particular instance I must. It will replace a hack
from a long time ago in a fundamental part of the code. :-(
Thanks,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
|