December 12, 2006
I'm unsure if anyone has mentioned this before, but it would be quite nice if DDoc used the name of the type as it is in the code, rather than translating aliases to their real meanings.

Example based on my real code:
---
struct Dimensional2(T)
{
T x, y;
alias x width;
alias y height;
}
alias Dimensional2!(int) Position;
alias Dimensional2!(int) Size;
---

I get Dimensional2!(int) in my ddoc output whenever I use Size or Position, and it's hard to understand when reading the docs.

Perhaps there could be a way to adjust this behavior?
December 12, 2006
Trevor Parscal wrote:
> I'm unsure if anyone has mentioned this before, but it would be quite nice if
> DDoc used the name of the type as it is in the code, rather than translating
> aliases to their real meanings.
> 
> Example based on my real code:
> ---
> struct Dimensional2(T)
> {
> T x, y;
> alias x width;
> alias y height;
> }
> alias Dimensional2!(int) Position;
> alias Dimensional2!(int) Size;
> ---
> 
> I get Dimensional2!(int) in my ddoc output whenever I use Size or Position,
> and it's hard to understand when reading the docs.
> 
> Perhaps there could be a way to adjust this behavior?

see also: http://d.puremagic.com/issues/show_bug.cgi?id=644