Re: Compiler doesn't see the inherited opApply in this example

2009-07-07 Thread Steven Schveighoffer
On Fri, 03 Jul 2009 17:42:45 -0400, Mike L. wrote: module test; import std.stdio; abstract class Parent { int opApply(int delegate(ref int) dg) { int fakeDelegate(ref uint fake, ref int content) { return dg(content); }

Re: Compiler doesn't see the inherited opApply in this example

2009-07-03 Thread Mike L.
Apparently I'm missing some basic concept about how D does OO since I recreated the problem with a simpler function. I'll re-examine things...

Compiler doesn't see the inherited opApply in this example

2009-07-03 Thread Mike L.
Hello, can anybody explain why the following code compiles with -version=works but not without? module test; import std.stdio; abstract class Parent { int opApply(int delegate(ref int) dg) { int fakeDelegate(ref uint fake, ref int content)