[Issue 2119] New: Please provide example of interfacing to C struct
Jarrett Billingsley
kb3ctd2 at yahoo.com
Thu May 22 12:41:16 PDT 2008
<d-bugmail at puremagic.com> wrote in message
news:bug-2119-3 at http.d.puremagic.com/issues/...
> http://d.puremagic.com/issues/show_bug.cgi?id=2119
>
> Summary: Please provide example of interfacing to C struct
> Product: D
> Version: 2.014
> Platform: PC
> URL: interfaceToC.html
> OS/Version: Linux
> Status: NEW
> Severity: enhancement
> Priority: P2
> Component: www.digitalmars.com
> AssignedTo: bugzilla at digitalmars.com
> ReportedBy: jlquinn at optonline.net
>
>
> It would be nice to see an example of exporting a C struct to D, such as
> that
> returned by stat().
D structs are, by design, binary-compatible with C structs. You just..
write it.
Also see the sections on structs here:
http://www.digitalmars.com/d/1.0/htomodule.html
More information about the Digitalmars-d-bugs
mailing list