[Issue 7318] Cannot concatenate arrays of super- and subtype

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7318 Iain Buclaw changed: What|Removed |Added Priority|P2 |P4 --

[Issue 7318] Cannot concatenate arrays of super- and subtype

2012-01-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7318 --- Comment #7 from Steven Schveighoffer 2012-01-20 07:50:06 PST --- (In reply to comment #6) > > I could use a template to do the job: > > > > ref A[] append(A,B)(ref A[] x, B[] y) if(is(B:A)) { > > foreach(e; y){ > > x.length++;

[Issue 7318] Cannot concatenate arrays of super- and subtype

2012-01-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7318 --- Comment #6 from Andrei Alexandrescu 2012-01-20 07:43:29 PST --- > I could use a template to do the job: > > ref A[] append(A,B)(ref A[] x, B[] y) if(is(B:A)) { > foreach(e; y){ > x.length++; > x[$-1] = e; > } >

[Issue 7318] Cannot concatenate arrays of super- and subtype

2012-01-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7318 --- Comment #5 from timon.g...@gmx.ch 2012-01-20 07:23:55 PST --- (In reply to comment #4) > (In reply to comment #2) > > To further back up my point, this compiles, and it is not a bug: > > > > void main(){ > > auto a = [new Object()]; > >

[Issue 7318] Cannot concatenate arrays of super- and subtype

2012-01-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7318 Steven Schveighoffer changed: What|Removed |Added CC||schvei...@yahoo.com --- Comment

[Issue 7318] Cannot concatenate arrays of super- and subtype

2012-01-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7318 Andrei Alexandrescu changed: What|Removed |Added CC||and...@metalanguage.com

[Issue 7318] Cannot concatenate arrays of super- and subtype

2012-01-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7318 timon.g...@gmx.ch changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALID

[Issue 7318] Cannot concatenate arrays of super- and subtype

2012-01-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7318 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC|