[Issue 648] DDoc: unable to document mixin statement

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 14 23:27:37 PST 2013


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


Jacob Carlborg <doob at me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |doob at me.com


--- Comment #14 from Jacob Carlborg <doob at me.com> 2013-01-14 23:27:29 PST ---
I think this would be useful to have. For example:

/// doc
class Foo
{
    /// doc
    mixin Singleton;
}

In this case you might want that the singleton should be documented and part of
the public API. It would be a good idea to know that Foo is a singleton.

Another example:

/// doc
class Bar
{
    /// doc
    mixin Property!(int, "x");
}

The mixin would expand to something like:

private int x_;
@property int x () { return x_; }
@property int x (int value) { return x_ = value; }

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list