DIP74: Reference Counted Class Objects
Steven Schveighoffer via Digitalmars-d
digitalmars-d at puremagic.com
Fri Feb 27 06:46:22 PST 2015
On 2/27/15 9:09 AM, Andrei Alexandrescu wrote:
> On 2/27/15 1:09 AM, ted wrote:
>> Probably another silly question: How would the examples work with
>> const/immutable (using examples in howtos)?
>> e.g. const Widget a = new Widget;
>> auto b = a; <-- mutable method Widget.opAddRef is not callable
>> using a const object
>
> This is tricky. I meant to discuss it; for now I planted a TODO.
Wouldn't you bless this mechanism of logical const the same way
synchronized does?
-Steve
More information about the Digitalmars-d
mailing list