[DGD] Calling a parent's function

Erwin Harte harte at xs4all.nl
Wed Apr 2 18:10:22 CEST 2003


On Wed, Apr 02, 2003 at 08:09:39AM -0800, Noah Lee Gibbs wrote:
>   I've forgotten...  If you've got an object that inherits from a parent 
> and overrides one of the parent functions, is there a way for the child 
> to call the parent function from inside the overridden function?

You mean like this?

    inherit "/lib/foo";

    void bar()
    {
	::bar();
    }

Or perhaps even like this:

    inherit foo "/lib/foo";

    void bar()
    {
	foo::bar();
    }

If not, I have no idea what exactly you want and some more details may
be necessary. :-)

Erwin.
-- 
Erwin Harte <harte at xs4all.nl>
_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list