https://issues.dlang.org/show_bug.cgi?id=7318
Iain Buclaw changed:
What|Removed |Added
Priority|P2 |P4
--
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++;
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;
> }
>
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()];
> >
http://d.puremagic.com/issues/show_bug.cgi?id=7318
Steven Schveighoffer changed:
What|Removed |Added
CC||schvei...@yahoo.com
--- Comment
http://d.puremagic.com/issues/show_bug.cgi?id=7318
Andrei Alexandrescu changed:
What|Removed |Added
CC||and...@metalanguage.com
http://d.puremagic.com/issues/show_bug.cgi?id=7318
timon.g...@gmx.ch changed:
What|Removed |Added
Status|RESOLVED|REOPENED
Resolution|INVALID
http://d.puremagic.com/issues/show_bug.cgi?id=7318
Walter Bright changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|