October 25, 2005 Glitch in http://www.digitalmars.com/d/declaration.html | ||||
---|---|---|---|---|
| ||||
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?) |
October 26, 2005 Re: Glitch in http://www.digitalmars.com/d/declaration.html | ||||
---|---|---|---|---|
| ||||
Posted in reply to F | 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 |
Copyright © 1999-2021 by the D Language Foundation