digitalmars.D.learn - How to handle public: inside DDOC example section ?
- Klaus Oberhofer (33/33) Oct 21 2005 The following code
- Walter Bright (3/7) Oct 21 2005 Put a space between public and :.
- Bruno Medeiros (7/19) Oct 24 2005 Hum... here's an example where using '@' for doc would be "cleaner",
- Vathix (3/10) Oct 24 2005 How about making Ddoc skip ones that don't start with uppercase
The following code
<snip>
/++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
Some description
Example:
--------------------------
import std.cstream;
// define a class inside example section
class Example
{
public:
int id;
this(int _id)
{
id = _id;
}
~this()
{
}
}
--------------------------
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
/
void main()
{
}
</snip>
produces incorrect html documentation. I guess the "public:" line is
expected to be a DDOC macro. Anyone knows how to handle this ?
With kind regards
Klaus
Oct 21 2005
"Klaus Oberhofer" <oberhofer users.sourceforge.net> wrote in message
news:Xns96F67B56CEF3CC3DEE85C66A248c79606 63.105.9.61...
public:
[...]
produces incorrect html documentation. I guess the "public:" line is
expected to be a DDOC macro. Anyone knows how to handle this ?
Put a space between public and :.
Oct 21 2005
Walter Bright wrote:"Klaus Oberhofer" <oberhofer users.sourceforge.net> wrote in message news:Xns96F67B56CEF3CC3DEE85C66A248c79606 63.105.9.61...Hum... here's an example where using ' ' for doc would be "cleaner", altough the problem mentioned here is not very big/annoying. -- Bruno Medeiros - CS/E student "Certain aspects of D are a pathway to many abilities some consider to be... unnatural."public: [...] produces incorrect html documentation. I guess the "public:" line is expected to be a DDOC macro. Anyone knows how to handle this ?Put a space between public and :.
Oct 24 2005
On Fri, 21 Oct 2005 19:41:19 -0400, Walter Bright <newshound digitalmars.com> wrote:"Klaus Oberhofer" <oberhofer users.sourceforge.net> wrote in message news:Xns96F67B56CEF3CC3DEE85C66A248c79606 63.105.9.61...How about making Ddoc skip ones that don't start with uppercasepublic: [...] produces incorrect html documentation. I guess the "public:" line is expected to be a DDOC macro. Anyone knows how to handle this ?Put a space between public and :.
Oct 24 2005









Bruno Medeiros <daiphoenixNO SPAMlycos.com> 