D as A Better C?
Adam Wilson
flyboynw at gmail.com
Tue Feb 11 18:47:57 PST 2014
On Tue, 11 Feb 2014 18:40:08 -0800, Daniel Murphy
<yebbliesnospam at gmail.com> wrote:
> "Adam Wilson" wrote in message
> news:op.xa44tcvr707hn8 at invictus.hra.local...
>
>> IIRC every class, if it inherits from nothing else, inherits from
>> Object. The compiler expects Object on all classes. Beyond that I can't
>> speak to how dependent the compiler is on the inheritance to make
>> classes work.
>
> extern(C++) classes do not depend on object/Object or anything else.
Awesome, I didn't know that. Does that mean we could add a switch for
default linkage? That's good to know for reasons related to a couple of my
D projects.
--
Adam Wilson
GitHub/IRC: LightBender
Aurora Project Coordinator
More information about the Digitalmars-d
mailing list