Ddoc and version

Walter Bright newshound at digitalmars.com
Thu Aug 17 13:43:39 PDT 2006


version is a problem with Ddoc, however, it may be a generally 
unresolvable one.

But I think it's a little odd that you'd have two different descriptions 
for the same code???

Here's a way to do it, not the nicest, but workable:

   version(XYZZY)
   {
    /** Some description.
    */
    void someFunc() { implementation(); }
   }
   else
   {
    /** Some other description.
    */
    void someFunc() { implementation(); }
   }

   void implementation()
   {
	...
   }



More information about the Digitalmars-d-bugs mailing list