[Issue 3550] array.dup violates const/invariant without a cast.
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Nov 24 20:02:11 PST 2009
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=3550
--- Comment #1 from Steven Schveighoffer <schveiguy at 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: -------
    
    
More information about the Digitalmars-d-bugs
mailing list