www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 194] New: DDoc: method-attributes ignored within templated class

reply d-bugmail puremagic.com writes:
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.


-- 
Jun 14 2006
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=194






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.


-- 
Jun 17 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
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: -------
Jan 19 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
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



02:11:35 PDT ---
*** Issue 2516 has been marked as a duplicate of this issue. ***


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: -------
Nov 02 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
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



02:11:35 PDT ---
*** Issue 2516 has been marked as a duplicate of this issue. ***


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: -------
Nov 02 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=194


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

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



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: -------
Dec 18 2012