[Issue 9285] dtoh utility - convert D files to C++ header files

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 27 11:43:28 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=9285



--- Comment #10 from Adam D. Ruppe <destructionator at gmail.com> 2013-11-27 11:43:21 PST ---
Are there any more substantial comments on the code I wrote in January? I just
tried to use it again, and there's some small updates needed. dmd's json output
has changed, it outputs mangles instead of types now! Weird. Of course, the
substantial stuff still isn't there - I'm wondering if it wouldn't be better to
do this with traits instead of the json.

Right now, the way it works is you do

dmd -X file.d
dtocpp file.json

But, maybe we should do:

translator.d:
import dtocpp;
import module_you_want_to_convert;

mixin Convert!(module_you_want_to_convert);


dmd translator.d dtocpp.d needed_modules.d
./translator

idk, the json is close to good enough, there's just still things I wish it did
better. It really needs to list enum values, if nothing else, to make them
useful. What I did before with that was to just skip enums.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list