new DIP48: Interface specifications for aggregate types

Jacob Carlborg doob at me.com
Mon Sep 9 00:13:55 PDT 2013


On 2013-09-08 20:13, Simen Kjaeraas wrote:
> In response to Walter's DIP47 I have created my own take on what I see
> as the main problem:
>
> http://wiki.dlang.org/DIP48

As I wrote in the DIP47 thread:

What's wrong with this currently working code:

class Foo
{
     void foo ();

     void foo ()
     {
         writeln("Foo.foo");
     }
}

void main ()
{
     auto foo = new Foo;
     foo.foo();
}

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list