On 10/22/2011 6:12 PM, Fawzi Mohamed wrote:
Another way is to replace the preprocessor with CTFE and string mixins. I
think that could be automated quite easily. (modulo the possibility of some
extremely heavy abuse on the C side that could make the other parts of the
translation a lot harder of course)

I think string mixings are an extremely ugly solution to this problem, and I
would try to avoid that, especially if they are used to represent a function
that should be inlined, and might be replaced by a normal function in a later
version.

Sure, but I've seen some pretty ugly use of preprocessor macros to paste together statements that need to be inserted. String mixins are the only hope.


Reply via email to