[Dlang-study] [lifetime] Few root decisions to take on RC classes

Martin Nowak code at dawg.eu
Mon Nov 2 07:31:09 PST 2015


On Friday, 30 October 2015 at 21:31:56 UTC, Andrei Alexandrescu wrote:
> * @rc classes shall not be single-rooted. Rationale: there is
> no strong advantage in it and it would force all @rc classes to
> embed a vptr. This has been already discussed and largely
> agreed upon in this group.

I this really such a good idea to it simply b/c it's possible?
It would kind of add a third species to struct/class, implying lots of
work (compiler changes, debuggers, typeinfo...).
And unless you want to break typeid(baseclass) which currently returns
the dynamic type you wouldn't even safe the pointer.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/dlang-study/attachments/20151102/d8778e4d/attachment-0001.sig>


More information about the Dlang-study mailing list