Pointers or copies?

Orgoton orgoton at mindless.com
Wed Dec 20 15:00:33 PST 2006


And when I want to remove the reference? Something like

void remove(in object target)
the_for:
for (i=0; i<queue.length; i++)
{
if target==queue[i]
{
queue[i]=queue[$-1];
queue.length-=1;
break the_for;
}
}

the compare will work fine, right? I mean, in C++ it would just compare a 4 byte
integer, how much data will D compare? hopefully, not he full object data ... ... ...



More information about the Digitalmars-d mailing list