www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Bug 129] New: DDoc makes enum values cryptic

http://d.puremagic.com/bugzilla/show_bug.cgi?id=129

           Summary: DDoc makes enum values cryptic
           Product: D
           Version: 0.156
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: jarrett.billingsley gmail.com


Compiling this with DDoc:

enum Spork
{
        Knife,
        Spoon
}

/// This is a function that takes a Spork as a default param.
void foon(Spork s = Spork.Knife)
{

}


Results in the rather cryptic:


void foon(Spork s = cast(Spork)0);


Generated for the function signature.  What is a cast(Spork)0?


-- 
May 05 2006