http://d.puremagic.com/issues/show_bug.cgi?id=3550



--- Comment #1 from Steven Schveighoffer <schvei...@yahoo.com> 2009-11-24 
20:02:10 PST ---
I should clarify:

I think idup should fail if the element has any *non-immutable* references in
it.

Note this leaves us with no ways to dup a const array with references in it! 
Should we have cdup?  A workaround to both would be to always allow dup when an
explicit cast is involved.

i.e.:

auto arg2 = cast(const(C)[])arg.dup;

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to