equivariant functions

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Oct 12 14:45:49 PDT 2008


Walter Bright wrote:
> Hmm. Given:
> 
>   typeof(s) foo(long s);
>   auto x = foo(1);
> 
> is x going to be declared as an int?

int is neither a supertype or a subtype of long.

Andrei



More information about the Digitalmars-d mailing list