[Gambas-user] New feature in the Array classes
Tony Morehen
tmorehen at ajm-software.com
Fri Feb 12 19:26:13 CET 2021
Why?
A common scenario: You fill an array with raw unsorted data. You sort
the array. Now you can use the faster sorted functions to work with the
data. If only a sorted array type has those functions, you must convert
your origibal base array into a sorted array.
On 2021-02-12 12:44 p.m., Brian G wrote:
> For simplicity and clarity, would it not be better to just have a
> sorted array as a base type, rather than all these compromises.
>
> a = new sorted_array[]
> and
> a = new array[]
>
> Thank You
> Brian G
>
> ------------------------------------------------------------------------
> *From: *"Jussi Lahtinen" <jussi.lahtinen at gmail.com>
> *To: *"Gambas mailing list" <user at lists.gambas-basic.org>
> *Sent: *Wednesday, February 10, 2021 9:55:55 AM
> *Subject: *Re: [Gambas-user] New feature in the Array classes
>
>
> For backward-compatibility, I think it's better to leave the current
> method untouched.
>
>
> Because of method overriding?
> It would be nice, if you could leave out optional arguments when
> overriding, then this could also be implemented as optional argument.
>
> Jussi
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210212/6a17b093/attachment.htm>
More information about the User
mailing list