1.0 ?? [templates and currying]

Walter Bright newshound at digitalmars.com
Tue Nov 7 01:02:31 PST 2006


Kirk McDonald wrote:
> The hope is that I could then say something like this:
> 
> class Foo {
>     void func() { }
> }
> 
> void main() {
>     void delegate() dg;
>     Foo f = new Foo;
>     dg.ptr = &f;
dg.ptr = f;
>     dg.funcptr = &Foo.func;
>     dg();
> }

and it should work.



More information about the Digitalmars-d mailing list