Pointer to private structure

Nikhil Jacob via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Dec 18 21:51:09 PST 2016


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* ?




More information about the Digitalmars-d-learn mailing list