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.