On 2014-02-25 11:04:23 +0000, Steve Teale said:
OK, it's at britseyeview.com/cumulative.txt.
I think enforcement of the call to super.handleCommand() would get most
of the way down the road. More could be done if the compiler inserted
the super call, and maintained an implicit class member equivalent to
my 'cmdResult' that could be tested in override implementations of
handleCommand(). But I think that is OTT.
Steve
It seems we were talking about different things. I thought you were
suggesting the following:
void main()
{
auto a = new Base();
int[] a1 = [ 0, 1, 2, 3 ];
foreach (int n; a1)
a.dealWithCommand(n); <-- Calls all the extension methods.
}