C-style nested structs convert to D

CodexArcanum CodexArcanum at gmail.com
Tue Mar 17 23:07:25 PDT 2009

Hey all, I'm trying to rewrite a few .h files into D so I can call a C library.  One snag I've hit is this guy:

struct _tree_t {
	_tree_t* next;
	_tree_t* father;
	_tree_t* sons;

D won't do the nested struct thing, so I need to convert this into something D will like, but which the library will still take in.  What should I do?

More information about the Digitalmars-d-learn mailing list