D as a Better C
sarn via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Wed Aug 23 15:45:27 PDT 2017
On Wednesday, 23 August 2017 at 16:17:57 UTC, SrMordred wrote:
> No structs in -betterC ???
I haven't tried the latest iteration of betterC yet, but the
longstanding problem is that the compiler generates TypeInfo
instances for structs, and TypeInfos are classes, which inherit
from Object, which are implemented in the D runtime. If you're
using the current release of D, the workarounds are to include an
implementation of Object so that classes work, or hack out the
TypeInfo at link time.
More information about the Digitalmars-d-announce
mailing list