"Andrei Alexandrescu" <[email protected]> wrote in message news:[email protected]... > On 11/9/13 9:37 PM, Daniel Murphy wrote: >> "deadalnix" <[email protected]> wrote in message >> news:[email protected]... >>> On Sunday, 10 November 2013 at 04:54:18 UTC, Daniel Murphy wrote: >>>> That is true in general, but D actually maps quite well onto C. >>>> >>>> I did some work on creating a C backend a while back, and it worked >>>> quite >>>> well. >>>> >>> >>> Out of curiosity, how do you handle exceptions ? >> >> I didn't. This was focussed on a subset suitable for microcontrollers. >> I >> would probably emit C++ instead if exceptions were required. > > That doesn't quite rhyme with C being a good backend language :o). > > Andrei >
I guess it's not for the full language, but if you can't use gdc or llvm, chances are your platform is too constrained to use exceptions. I don't mean C is capable of representing everything, but it can handle a large and useful subset.
