[Issue 1869] Semantically returning an array from a funciton is	difficult
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Feb 26 09:08:46 PST 2008
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=1869
------- Comment #16 from jason at spashett.com  2008-02-26 11:08 -------
(In reply to comment #15)
...
> This will work. We'll also pass arrays in by value, and will bind literals to
> dynamically-sized arrays.
> 
> In response to Derek: this is the "right thing" because every type in D has the
> same copy semantics whether it sits inside a struct or not. Every type...
> except statically-sized arrays. 
> 
Ok, I understand now. Seems good. This change will be in DMD 2.x at some future
point. 
I should of posted to digitalmars.d for this sort of thing instead of raising
this as a bug shouldn't I?
-- 
    
    
More information about the Digitalmars-d-bugs
mailing list