Bug 1652 – problem with /// generating strange output

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2007-11-09T03:57:00Z
Last change time
2015-06-09T05:14:40Z
Keywords
ddoc
Assigned to
nobody
Creator
hoganmeier

Attachments

IDFilenameSummaryContent-TypeSize
207testcode.rarsome testcode for you to reproduce the errorapplication/x-rar-compressed762
220oneusecomment.diffOnly allow a lineComment to be used once.text/plain293

Comments

Comment #0 by hoganmeier — 2007-11-09T03:57:55Z
with the following code: class Camera { private: vec3 m_pos; vec3 m_orth; vec3 m_vecf; vec3 m_vecx; vec3 m_vecy; reell m_angle; uint m_resx, m_resy; reell m_constx, m_consty; public: this(ref vec3 origin, ref vec3 direction, ref vec3 normal, int angle, uint resx, uint resy) { m_pos = origin; m_orth = normal; m_vecf = direction; m_angle = G2R(angle); m_resx = resx; m_resy = resy; } uint resx() {return m_resx;} /// resx property void resx(uint rhs) {m_resx=rhs;} /// ditto uint resy() {return m_resy;} /// resy property void resy(uint rhs) {m_resy=rhs;} /// ditto abstract void InitRay(reell x, reell y, inout Ray ray); /// initialize a ray through (x,y) in the camera plane } I get the following documentation: class Camera ; Camera baseclass this(ref vec3 origin, ref vec3 direction, ref vec3 normal, int angle, uint resx, uint resy); initialize a ray through (x,y) in the camera plane uint resx (); resx property initialize a ray through (x,y) in the camera plane initialize a ray through (x,y) in the camera plane void resx (uint rhs); ditto initialize a ray through (x,y) in the camera plane initialize a ray through (x,y) in the camera plane uint resy (); resy property initialize a ray through (x,y) in the camera plane initialize a ray through (x,y) in the camera plane void resy (uint rhs); ditto initialize a ray through (x,y) in the camera plane initialize a ray through (x,y) in the camera plane abstract void InitRay (double x, double y, ref Ray ray); initialize a ray through (x,y) in the camera plane
Comment #1 by hoganmeier — 2007-11-09T04:08:45Z
Created attachment 207 some testcode for you to reproduce the error some testcode for you to reproduce the error
Comment #2 by bugs-d — 2008-01-23T04:00:53Z
Created attachment 220 Only allow a lineComment to be used once. Reduced test case: /// Class class Example { public: void foo(); /// only on foo void bar(); /// only on bar } The reason is because public is getting the "only on bar" applied to it. Using curlies or removing that line fixes it. I figure it needs to be marked as "taken" by bar (e.g. set to NULL.) I'm not sure this won't break anything else, but I can't find anything it doesn't make better. This still works as one would expect: /// Class class Example { public{ void foo(); /// only on foo void bar(); /// only on bar } /// everything } -[Unknown]
Comment #3 by clugdbug — 2010-01-15T07:23:24Z
*** This issue has been marked as a duplicate of issue 1117 ***