Re: OBJ_HASMETHOD [message #42750] |
Fri, 25 February 2005 15:26 |
Jim Pendleton
Messages: 13 Registered: July 2001
|
Junior Member |
|
|
"David Fanning" <davidf@dfanning.com> wrote in message
news:MPG.1c89190c4867abbc989945@news.frii.com...
> JD Smith writes:
>
>> I don't think it ships with IDL, but instead it was found on the RSI
>> contrib site, contributed by Jim Pendelton.
>
> Well, that explains a couple of things. I thought it was odd
> that the name would just "come" to me. :-)
You are indeed prescient, David, since my version of the functionality on
the codebank
is named "OBJECT_HASMETHOD". Of course, in spending weeks plowing through
the source code of the iTools, as you've probably done, you probably
subliminally noted
its use therein.
Jim P.
|
|
|
|
Re: OBJ_HASMETHOD [message #42756 is a reply to message #42755] |
Fri, 25 February 2005 10:07  |
JD Smith
Messages: 850 Registered: December 1999
|
Senior Member |
|
|
On Fri, 25 Feb 2005 10:47:12 -0700, David Fanning wrote:
> 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. :-(
I don't think it ships with IDL, but instead it was found on the RSI
contrib site, contributed by Jim Pendelton. You even remarked:
http://groups-beta.google.com/group/comp.lang.idl-pvwave/msg /1c08f8398539fcd6
Maybe you need to make that webpage after all ;). Or you could just do:
http://groups-beta.google.com/groups?as_q=object_hasmethod&a mp;as_ugroup=*idl-pvwave*
JD
|
|
|