[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #3075: Different results between Array.Push and Array.Add with ExitSorted


http://gambaswiki.org/bugtracker/edit?object=BUG.3075&from=L21haW4-

Comment #2 by Benoît MINISINI:

Of course, the 'Add()' method is the same as 'Push()' only if its third argument is omitted.

Your two projects are different at line 27:

    If Not aFill.ExistSorted(aInt[I]) Then aFill.Push(aInt[I])

versus:

    If Not aFill.ExistSorted(aInt[I]) Then aFill.Add(aInt[I], I)
                                                              
                                                             /\
                                                             /
                                                  ( ! )------

Benoît MINISINI changed the state of the bug to: Rejected.


----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----