Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
October 20, 2005 Ddoc: ditto highlighting | ||||
---|---|---|---|---|
| ||||
When /** ditto */ is used, the declaration it refers to should be added to the list for highlighting. It's not uncommon for closely related functions to have different names -- eg C has exp(), expf() and expl(). eg. /********************************* * comments for funcA and funcB * funcA is highlighted (underlined), * but funcB is not, although I think it should be. */ int funcA(int x) { } /** ditto */ int funcB(int x) { } |
October 20, 2005 Re: Ddoc: ditto highlighting | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don Clugston | In article <dj7to1$1qjp$1@digitaldaemon.com>, Don Clugston says... > >When /** ditto */ is used, the declaration it refers to should be added >to the list for highlighting. It's not uncommon for closely related >functions to have different names -- eg C has exp(), expf() and expl(). This would be quite nice for template specializations as well. Also, is there any way to have enum parameters display correctly? enum Enum { VAL_1, VAL_2 } template fn(Enum e : Enum.VAL_1) { fn() {} } In DDoc, this will display as: template fn( (Enum) 0 ); Sean |
October 21, 2005 Re: ditto highlighting | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don Clugston | "Don Clugston" <dac@nospam.com.au> wrote in message news:dj7to1$1qjp$1@digitaldaemon.com... > When /** ditto */ is used, the declaration it refers to should be added > to the list for highlighting. It's not uncommon for closely related > functions to have different names -- eg C has exp(), expf() and expl(). Yes, that's a ddoc bug. |
October 21, 2005 Re: Ddoc: ditto highlighting | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | "Sean Kelly" <sean@f4.ca> wrote in message news:dj8mvc$2rrt$1@digitaldaemon.com... > In DDoc, this will display as: > > template fn( (Enum) 0 ); I know. That's another bug. |
Copyright © 1999-2021 by the D Language Foundation