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

Home » Public Forums » archive » Method Overrides
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Method Overrides [message #80414] Mon, 04 June 2012 12:20
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
Hi,

I have a set of IDL objects and am running into method overriding
problems at run-time. Any time I invoke a sub-class at run-time
without explicitly compiling it before-hand, the class definition
method gets compiled and executed, but not the over-riding methods.
The super-class's methods still get used.

All methods are in the same file before/above the object definition
method (__define), so I thought they would be compiled and recognized
at the same time, but apparently not as I expected.

At run-time, I see
% Compiled module: CLASS__DEFINE

But if I compile it myself
IDL> .compile class__define
% Compiled module: CLASS__DEFINE::METHOD1
% Compiled module: CLASS__DEFINE::METHOD2
% Compiled module: CLASS__DEFINE::METHOD3
% Compiled module: CLASS__DEFINE

Could some one explain to me a little more clearly when or in which
order to compile sub-classes and super-classes? Every time I use an
over-riding method, do I either have to compile it or use the "obj ->
classname::method" syntax to ensure that I get the right one?

Thanks
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: CONTOUR plot
Next Topic: Re: avhrr data extraction

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

Current Time: Wed Oct 08 19:06:03 PDT 2025

Total time taken to generate the page: 0.00495 seconds