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

Home » Public Forums » archive » Re: What about real polymorphism ??
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: What about real polymorphism ?? [message #41976 is a reply to message #41974] Thu, 09 December 2004 09:59 Go to previous messageGo to previous message
Antonio Santiago is currently offline  Antonio Santiago
Messages: 201
Registered: February 2004
Senior Member
Hi another time :)
this seems more a chat program than a news group, we are very quickly :)

This is only to talk because my problem was solutioned with the lastest
messages.

>> Later when i execute
>> methods over this PERSON it will execute the "datos" method of WOMEN or
>> MAN depending of its subtype (that's polymorphism).
>
>
> Yes, and... I miss the point. This is *exactly* what IDL does.

Thats ok. But you know that your object "is a" WOMEN or a MAN because:
1) you have created it "o=obj_new('WOMAN')" and then you know its
methods or
2) you request its type with OBJ_ISA() funtion and then need to know it
methos to invoque one.

I like the idea of use OBJ_ARR because i dont need to know the type of
object it containes (WOMEN or MAN) o only know that this objects are
PERSON's that has the method "datos". I can invoque that method on all
this and the "polymorphism" does the rest.

Anyway if you come to Spain int he future and goes to Barcelona, call me
and i invite you to have a beer, wine or a glass of watter if it is
necesary.

Thanks for your time and to be patient with fiker newbie :)
Bye.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stretching an image
Next Topic: ENVI and ROIs

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

Current Time: Fri Oct 10 22:39:17 PDT 2025

Total time taken to generate the page: 0.64142 seconds