www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Glitch in http://www.digitalmars.com/d/declaration.html

reply F <F_member pathlink.com> writes:
In: http://www.digitalmars.com/d/declaration.html

at Type Aliasing

in:

--------------------------------------
alias int myint;

void foo(int x) { . }
void foo(myint m) { . }error, multiply defined function foo
---------------------------------------

what begins with "error" should be documented and in green, no? (is DDoc?)
Oct 25 2005
parent J C Calvarese <technocrat7 gmail.com> writes:
In article <djlrg0$3h9$1 digitaldaemon.com>, F says...
In: http://www.digitalmars.com/d/declaration.html

at Type Aliasing

in:

--------------------------------------
alias int myint;

void foo(int x) { . }
void foo(myint m) { . }error, multiply defined function foo
---------------------------------------

what begins with "error" should be documented and in green, no? (is DDoc?)
Yeah, I think it's supposed to be... ---- alias int myint; void foo(int x) { . } void foo(myint m) { . } // error, multiply defined function foo ---- I think this would even be better... ---- alias int myint; void foo(int x) { } void foo(myint m) { } // error, multiply defined function foo ---- But that's just me. ;) jcc7
Oct 26 2005