Static Constructors

BCS ao at pathlink.com
Fri Oct 3 16:15:33 PDT 2008


Reply to Jarrett,

> On Fri, Oct 3, 2008 at 5:57 PM, Saaa <empty at needmail.com> wrote:
> 
>> deleting is even more annoying.
>> 
> You don't have to delete anything.  This is what the GC is for.
> 

delete could be "remove element 42 from an array of 54 resulting an an array 
of 53"

  data = data[0..42] ~ data[43..$];
or
  data[42..$-1] = data[43..$].dup; // in-place sortof
  data.length = data.length-1;




More information about the Digitalmars-d-learn mailing list