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

Ian Liu ian.liu88 at gmail.com
Mon Dec 3 00:27:05 CET 2007


Why would op_x always == op_y?

I didn't get it... couldn't you show a more elaborated code?

On Dec 2, 2007 4:26 PM, Romaric Fabre <romaric.fabre at gmail.com> wrote:
> 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
>
>
>
>
>
>
> --
> haXe - an open source web programming language
> http://haxe.org
>



More information about the Haxe mailing list