[Issue 1869] Semantically returning an array from a funciton is difficult

Bill Baxter dnewsgroup at billbaxter.com
Tue Feb 26 10:10:23 PST 2008


d-bugmail at puremagic.com wrote:
> 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?

digitalmars.d.learn, in fact.
However, you wouldn't have gotten this useful feedback from Andrei over 
there, because he doesn't read (or at least reply to) the NG's.  So it's 
hard to say you did the wrong thing here.

--bb


More information about the Digitalmars-d-bugs mailing list