[Issue 644] Ddoc: aliases used as parameters/fields revert to base type in generated docs.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 6 07:00:22 PST 2006


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





------- Comment #1 from tomas at famolsen.dk  2006-12-06 09:00 -------
In my case this is problematic because:

// code
version(Windows) alias HWND WindowPeer;
else version(Motif) alias Widget WindowPeer;
else version(GTK) alias GtkWidget* WindowPeer;

// docs
alias void* WindowPeer;

---------------------------

In the docs all occurences of WindowPeer is replaced with void* :/

A workaround is to do:
typedef void* WindowPeer_;
alias WindowPeer_ WindowPeer;

This is better but the name will never be correct.

If I just do
typedef void* WindowPeer;
I can't have the alias documented correctly as an alias!


-- 




More information about the Digitalmars-d-bugs mailing list