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.

Reply via email to