[haXe] Using the List.remove function on an Haxe.List<myObject> ?

Romaric Fabre romaric.fabre at gmail.com
Sun Dec 2 19:26:01 CET 2007


class Operation
{
    public var id;
    ...
}

var operations:List<Operation>

operations.remove(op_x) seems to remove the first item of the list, as op_x
always == op_y

Should I override the method == from the class Operation ? Or do I have to
override the List class and modify the remove method ?
Or am I missing something ?

Any help will be appreciated, thank you.

Romaric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20071202/19bef1d5/attachment.htm


More information about the Haxe mailing list