On Tuesday, May 28, 2013 10:28:34 Lionello Lunesu wrote:
> On 5/27/13 9:20, Jonathan M Davis wrote:
> > class D : C
> > {
> >
> > void foo() { writeln("D"); }
> > void bar() { writeln(super.foo()); }
> >
> > }
>
> I think this works just fine, you just have to drop the writeln(). foo()
> doesn't return anything, but prints itself.
>
> But yet, super should just work: it should be a variable of type C and
> treated as such.
Oh, you're right. Apparently, I wrote that up too quickly. So, my issue #2
isn't a problem. super will work with UFCS. But that still leaves #1 and #3.
- Jonathan M Davis