digitalmars.D.bugs - [Issue 2395] New: spec does not document struct forward declarations (declaring opaque struct type)
- d-bugmail puremagic.com (25/25) Oct 06 2008 http://d.puremagic.com/issues/show_bug.cgi?id=2395
- d-bugmail puremagic.com (5/5) Oct 06 2008 http://d.puremagic.com/issues/show_bug.cgi?id=2395
- d-bugmail puremagic.com (12/12) Jan 22 2012 http://d.puremagic.com/issues/show_bug.cgi?id=2395
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 digitalmars.com ReportedBy: tomas 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. --
Oct 06 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2395 GtkD makes use of this for representing opaque (to GtkD at least) C struct types. They are never defined. --
Oct 06 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2395 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |WORKSFORME 16:41:05 PST --- This is now documented. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 22 2012