Andrei's interface requests

Kagamin spam at here.lot
Sat Apr 4 07:58:42 PDT 2009


Denis Koroskin Wrote:

> interface Foo
> {
>     this(int i);
>     typedef Bar;
> }
> 
> Foo foo = new Foo(42); // huh?
> Foo.Bar x; //what's x.typeof?

I think, template will accept type T:Foo that satisfies concept Foo and
T foo=new T(42);
T.Bar x;



More information about the Digitalmars-d mailing list