@mutable

Marc Schütz via Digitalmars-d digitalmars-d at puremagic.com
Sun Feb 21 10:50:07 PST 2016


On Sunday, 21 February 2016 at 18:19:35 UTC, Nick Treleaven wrote:
> BTW the Usage section still uses lazy. I think the RCObject 
> code shouldn't use new to construct the struct here:
>
> auto o = new immutable(RCObject);
>
> It probably needs to be on the stack instead.
>

Thanks, fixed.

> (I also made a minor edit for formatting/readability, hope 
> that's OK).

Sure :-)


More information about the Digitalmars-d mailing list