[Issue 2395] New: spec does not document struct forward declarations (declaring opaque struct type)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 6 05:44:26 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2395

           Summary: spec does not document struct forward declarations
                    (declaring opaque struct type)
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Keywords: spec
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: tomas at famolsen.dk


I wasn't actually aware this was valid in D:

module test;
struct foobar;
foobar* foo() {
  return null;
}

I thought structs needed a body, I can't find anywhere this is documented as
valid, did I miss it?. Also how is this supposed to play with eg. TypeInfo ?
The error messages reported by DMD when trying different stuff with one aren't
very descriptive.


-- 



More information about the Digitalmars-d-bugs mailing list