C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Derived class's function invokes base class's function

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Sun, 10 Apr 2022 17:28:39 +0100
On Wed, Apr 6, 2022 at 9:41 PM Frederick Virchanza Gotham wrote:

> For the timebeing I'm just bouncing ideas around.

I have put together a 9-page PDF document in which I give the first
thorough draft of my proposal. Specifically I address:

* In cases of virtual inheritance, don't invoke the method in the base
class more than once
* Mark the method in the derived class as 'continue'
* Mark the method in the base class as 'requires continue'
* Mark the method in the derived class as 'break'
* Specifying the order of invocation of methods with 'goto continue'
* Use function call syntax with 'goto continue' to give customised arguments
* The interaction of virtual and non-virtual functions in a chain of continuity
* Excluding specific base classes by name if you don't want their
method to be invoked
* One thorough, extreme example showing all the proposed features
working together

You can download the document from my webspace here:

    http://www.virjacode.com/download/continuity_methods/continuity_methods_draft001.pdf

Received on 2022-04-10 16:28:47