[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 #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()]; auto

[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 and...@metalanguage.com 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]

[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 schvei...@yahoo.com 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){

[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 bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED

[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 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added CC|

[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 schvei...@yahoo.com changed: What|Removed |Added CC|