Immutable Message Passing

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Dec 4 19:12:05 PST 2011


On 12/4/11 4:32 PM, Andrew Wiley wrote:
> In that case, no object copying is occurring, and I have message
> passing for immutable objects working, although my current solution is
> basically to check whether the object is immutable, and if so, memcpy
> the reference. That breaks immutability, but only for the reference,
> and I don't think there's any alternative unless we get tail
> const/immutable into the language.
>
> I'm guessing this is too hackish to get merged into std.variant?

We need to have Variant cope with that. Please submit a bug report.

Andrei


More information about the Digitalmars-d mailing list