digitalmars.D.learn - C-style nested structs convert to D
- CodexArcanum (7/7) Mar 17 2009 Hey all, I'm trying to rewrite a few .h files into D so I can call a C l...
- Daniel Keep (3/12) Mar 17 2009 Tested with 1.035; it works just fine.
- CodexArcanum (4/8) Mar 18 2009 Hmmm... I updated my DMD (it was 1.033) and fixed a miswritten import st...
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?
Mar 17 2009
CodexArcanum wrote:
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?
Tested with 1.035; it works just fine.
-- Daniel
Mar 17 2009
Daniel Keep Wrote:Tested with 1.035; it works just fine. -- DanielHmmm... I updated my DMD (it was 1.033) and fixed a miswritten import statement. That seems to have cleared up the error I was getting. Thank you Daniel. --Chris
Mar 18 2009








CodexArcanum <CodexArcanum gmail.com>