removing an item from a dynamic array
    maarten van damme 
    maartenvd1994 at gmail.com
       
    Mon Oct 24 22:34:09 PDT 2011
    
    
  
import std.algorithm;
struct Loc {
uint row;
uint col;
}
void main(){
Loc[] testArray;
Loc a={3,2};
Loc b={5,3};
testArray~=a;
testArray~=b;
remove(testArray,a);
}
gives the same error
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20111025/7727067c/attachment.html>
    
    
More information about the Digitalmars-d-learn
mailing list