On Sun, Dec 4, 2011 at 9:12 PM, Andrei Alexandrescu <seewebsiteforem...@erdani.org> wrote: > 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. >
Done: http://d.puremagic.com/issues/show_bug.cgi?id=7069 Andrew