[Gambas-user] New feature in the Array classes

Brian G brian at westwoodsvcs.com
Fri Feb 12 18:50:43 CET 2021


This way each method could simply accommodate the set it is working with. 

sorted_array.add() does the correct thing 
array.add() does the correct thing 
ETC. 

the interface is maintained correctly. 
etc. 

Thank You 
Brian G 


From: "Brian" <brian at westwoodsvcs.com> 
To: "Gambas mailing list" <user at lists.gambas-basic.org> 
Sent: Friday, February 12, 2021 9:44:25 AM 
Subject: Re: [Gambas-user] New feature in the Array classes 

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 ]---- 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210212/09e186b2/attachment.htm>


More information about the User mailing list