Thread overview
[Issue 194] New: DDoc: method-attributes ignored within templated class
Jun 14, 2006
d-bugmail
Jun 17, 2008
d-bugmail
Jan 20, 2012
Jesse Phillips
Nov 02, 2012
Andrej Mitrovic
Nov 02, 2012
Andrej Mitrovic
Dec 18, 2012
Andrej Mitrovic
June 14, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=194

           Summary: DDoc: method-attributes ignored within templated class
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: someidiot@earthlink.net


DDoc usually respects method attributes with a class, ensuring that private methods are not emitted, abstract methods are noted as such, and so on.

This does not happen within a templated class: all methods are emitted regardless, and keywords such as abstract, protected, private, etc are all supressed from the output.

Marked as 'major' because the generated doc is simply invalid.


-- 

June 17, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=194





------- Comment #1 from bugzilla@digitalmars.com  2008-06-17 03:01 -------
I agree this is a bug. This is not an excuse, but an explanation: By the time Ddoc runs, class members have been semantically analyzed, and so Ddoc knows what attributes go with the class members. For class templates, however, they don't get analyzed until they are instantiated, so when Ddoc looks at it the attributes have not been computed yet. That's why they're absent.


-- 

January 20, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=194


Jesse Phillips <Jesse.K.Phillips+D@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Jesse.K.Phillips+D@gmail.co
                   |                            |m
   Target Milestone|---                         |2.059


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 02, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=194


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |johnch_atms@hotmail.com


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-11-02 02:11:35 PDT ---
*** Issue 2516 has been marked as a duplicate of this issue. ***

--- Comment #3 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-11-02 02:11:51 PDT ---
*** Issue 3445 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 02, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=194


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |johnch_atms@hotmail.com


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-11-02 02:11:35 PDT ---
*** Issue 2516 has been marked as a duplicate of this issue. ***

--- Comment #3 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-11-02 02:11:51 PDT ---
*** Issue 3445 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 18, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=194


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |necroment@gmail.com


--- Comment #4 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-12-18 12:02:07 PST ---
*** Issue 5324 has been marked as a duplicate of this issue. ***

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