D as A Better C?

Paulo Pinto pjmlp at progtools.org
Tue Feb 11 12:53:22 PST 2014


Am 11.02.2014 20:43, schrieb Walter Bright:
> I've toyed with this idea for a while, and wondered what the interest
> there is in something like this.
>
> The idea is to be able to use a subset of D that does not require any of
> druntime or phobos - it can be linked merely with the C standard
> library. To that end, there'd be a compiler switch (-betterC) which
> would enforce the subset.
>
> (First off, I hate the name "better C", any suggestions?)
>
> The subset would disallow use of any features that rely on:
>
> 1. moduleinfo
> 2. exception handling
> 3. gc
> 4. Object
>
> I've used such a subset before when bringing D up on a new platform, as
> the new platform didn't have a working phobos.
>
> What do you think?

That looks a nice idea.

Yeah, "better C" is already owned by C++. :)

--
Paulo


More information about the Digitalmars-d mailing list