D 2015/2016 Vision?
deadalnix via Digitalmars-d
digitalmars-d at puremagic.com
Mon Oct 12 01:18:42 PDT 2015
On Monday, 12 October 2015 at 07:39:30 UTC, Kagamin wrote:
> On Thursday, 8 October 2015 at 14:05:07 UTC, Jonathan M Davis
> wrote:
>> Maybe, but having classes be value generally makes no sense,
>> because you can't use polymorphism with value types.
>
> If it doesn't make sense for reference types to be value types,
> then your suggestion to use structs (value types) to implement
> reference types doesn't make sense either.
It does make sense. You have the value type that do the reference
counting, and a reference type that is reference counted.
That is good separation of concerns.
More information about the Digitalmars-d
mailing list