Top 5

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Oct 8 16:51:02 PDT 2008


nazo wrote:
> nazo wrote:
>> 2. "int+long" is supported but "foo(int, long)" is not supported
> 
> oops, this is my mistake. it's works with mysterious way.
> 
> 
> import std.stdio;
> alias int Int;
> alias long Long;
> 
> typeof(Int + Long) foo(){
>   return 10;
> }
> 
> void baz(Int a, Long b){
> }
> 
> typeof(baz(Int, Long)) bar(){
> }
> 
> void main(){
>   writefln(foo());
>   bar();
> }

I think a bug report would be in order.

Andrei



More information about the Digitalmars-d mailing list