On Tuesday, 25 March 2014 at 20:38:40 UTC, Jacob Carlborg wrote:
Code: https://github.com/adamdruppe/tools/blob/dtoh/dtoh.d

The author might consider using an associative array of functions to handle the various keywords, rather than switches.

I would suggest adding a "jsonutils.d" or somesuch, to break out the re-usable bits from the task-specific ones.

"scope (exit)" should be used to add the #endif to the end of the .h files. Also, there should be a comment with the guard name after it. (May as well try and create a nice-looking .h file).

Reply via email to