bug? array concatenation/append on struct

icee iceelyne at gmail.com
Mon Jun 26 19:49:07 PDT 2006


struct SPoint{
double x,y;
SPoint create(double x,double y){
SPoint p;
p.x=x;
p.y=y;
return p;
}
}
..
SPoint[] sps;
sps~=SPoint.create(2,4);//OK.

sps=sps~SPoint.create(2,4);//Internal error: ..\ztc\type.c 308, dmd v0.161

int[] a;
a~=2;//OK.
a=a~2;//OK.






More information about the Digitalmars-d-bugs mailing list