[Issue 1652] problem with /// generating strange output
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 23 02:00:54 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1652
unknown at simplemachines.org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|bugzilla at digitalmars.com |unknown at simplemachines.org
Status|NEW |ASSIGNED
------- Comment #2 from unknown at simplemachines.org 2008-01-23 04:00 -------
Created an attachment (id=220)
--> (http://d.puremagic.com/issues/attachment.cgi?id=220&action=view)
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]
--
More information about the Digitalmars-d-bugs
mailing list