Pointer to private structure
Nicholas Wilson via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Dec 18 22:13:34 PST 2016
On Monday, 19 December 2016 at 05:51:09 UTC, Nikhil Jacob wrote:
> In C, we can define a struct without body in an include file
> and use pointer to that structure
>
> For examples in public header file.
>
> struct data;
> data* new_data();
>
>
> We can then define the elements of struct data privately inside
> the implementation of library.
>
> Can we do this in D without using void* ?
Yes.
More information about the Digitalmars-d-learn
mailing list