Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!brutus.cs.uiuc.edu!apple!excelan!sjsumcs!horstman From: horstman@sjsumcs.sjsu.edu (Cay Horstmann) Newsgroups: comp.lang.c++ Subject: Re: Class scope and virtual functions Message-ID: <1989Nov11.033053.4148@sjsumcs.sjsu.edu> Date: 11 Nov 89 03:30:53 GMT Expires: 11/30/89 References: <21847@gryphon.COM> <10935@csli.Stanford.EDU> <1989Nov7.073836.23166@brutus.cs.uiuc.edu <20130@brunix.UUCP> Reply-To: horstman@sjsumcs.SJSU.EDU (Cay Horstmann) Distribution: na Organization: San Jose State University Lines: 16 Several people asked for the possibility of calling super->f() to invoke the method f() in the immediate superclass. I don't see why that would be such a wonderful feature. YOU built the inheritance tree, so you know the name of the superclass and can invoke it with superclassname::f() (And, in the case of multiple inheritance, you'd have to specify anyway which superclass you wanted to defer to.) The only time when you don't know the name of the superclass is when the code of your function is generated by a macro. Did anyone ever run into a situation in which such a macro might be useful?