Re: q: can I invoke a superclass' INIT method? [message #9801] |
Wed, 20 August 1997 00:00 |
rivers
Messages: 228 Registered: March 1991
|
Senior Member |
|
|
In article <33FB5A6A.3487@grc.varian.com>, Mirko Vukovic
<mirko.vukovic@grc.varian.com> writes:
> It seems that I cannot access an object's supperclass' INIT method. Is
> that the correct behavior? My reading of the INIT method section,
> second paragraph (p. 16 of the object and object grahics book) suggests
> otherwise.
No, you can do what you want. Here is an example from one of my routines.
epics_mca is a subclass of mca. In the epics_mca INIT method I call the
INIT method of the superclass. It works.
;*********************************************************** ******************
function epics_mca::init, record_name
t = self->mca::init()
self.record_name = record_name
status = caget( self.record_name, temp, max = 1) ; see if it exists
...
____________________________________________________________
Mark Rivers (773) 702-2279 (office)
CARS (773) 702-9951 (secretary)
Univ. of Chicago (773) 702-5454 (FAX)
5640 S. Ellis Ave. (708) 922-0499 (home)
Chicago, IL 60637 rivers@cars.uchicago.edu (e-mail)
or:
Argonne National Laboratory (630) 252-0422 (office)
Building 434A (630) 252-0405 (lab)
9700 South Cass Avenue (630) 252-1713 (beamline)
Argonne, IL 60439 (630) 252-0443 (FAX)
|
|
|