Open aladagemre opened 8 years ago
I'm not sure what's the issue. Is it that T
is used instead of T*
? The type
declaration seems fine, although maybe in those cases declaring the struct as struct T
(without declaring S
) should be good?
when I use T.new, it says T doesn't have method new. When I try to cast T to S, it says S can't be casted to T.
I don't know what's the reason for this.
When generating binding for igraph see
https://github.com/igraph/igraph/blob/a98fccd3fb2a9f67551a09d4159ef268ee62c658/include/igraph_datatype.h
This code is translated into
And then uses T* whenever functions indeed expect S. When we replace all T with S*, the code works.