Transition for removing functions from Object [Compiler devs in particular, please read]

Jonathan M Davis jmdavisProg at gmx.com
Mon May 27 19:49:58 PDT 2013


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


More information about the Digitalmars-d mailing list