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

Home » Public Forums » archive » It seems that there is *a bit* polymorphism in IDL.
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: It seems that there is *a bit* polymorphism in IDL. [message #40541 is a reply to message #40464] Thu, 12 August 2004 07:08 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> Use the SCOPE_VARNAME function with the REF_EXTRA keyword
> to write a short general purpose GETPROPERTY *procedure* method
> that'll return any member variables referenced via
> keyword names
>
> o -> GetPoperty, member_1 = member_1, member_2 = member_2, etc.
>
> where object "o" has fields
>
> self.member_1
> self.member_2
> etc.
>
> Now you don't need a separate, functional, form of GetProperty!

Well, the contest judges have not exactly been overwhelmed with
the results so far. I expect most participants are trying to
bribe the IT guys to get IDL 6.1 installed before the turn
of the *next* millennium.

Anyway, here is a clue. The GetProperty method's call
prototype should simple be this:

PRO MyClass::GetProperty, _REF_EXTRA=extra

No other parameters are needed. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Multiple IDL versions
Next Topic: black window on fsc_surface & fsc_surface_log?

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

Current Time: Sat Oct 11 16:39:14 PDT 2025

Total time taken to generate the page: 1.03588 seconds