[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Looping through an array with FOR EACH
[Thread Prev] | [Thread Next]
- Subject: Re: Looping through an array with FOR EACH
- From: Brian G <brian@xxxxxxxxxxxxxxxx>
- Date: Thu, 15 Jan 2026 13:54:47 -0800
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 1/15/26 13:22, Gianluigi wrote:
umm, perhaps not dramatic in a hobby sense. but when used in a production environment,Il 15/01/26 18:55, Brian G ha scritto:I think here we have have Ben step in, because what you are all stating is that 'for each' is a totally unreliable way of for instance listing a newly sorted array of strings... even the hint of a 'maybe not work' in a production environment is not acceptable on any level. I just don't believe for simple arrays that Ben would allow such a bug/ instability to persist as part of such an amazing work!If this is on any level true, perhaps this construct should be removed from the language it is therefore a useless construct.No body should be afraid to use a tool as intended.Dear Brian,Yes, I would really appreciate it if Benoit would say something about this.But it doesn't seem as dramatic as you're making it out to be.There are constructs better suited than others to do a given thing, and constructs better suited to do something else. Now, I speak as someone who's very ignorant on the subject, but I would use FOR EACH to find all occurrences, knowing that the construct will return them all.But if I want to know exactly where the occurrences are, then... Where do you find this reasoning flawed? As far as I know, C doesn't support For Each. With Best Regards Gianluigi
It is pretty scary if it is unable to go through a linear sorted array, and not present the sorted array.
It just means that this is one element of gambas that can not be used in a production sense. It is not dramatic but needs to be clearly documented on the wiki
I.E, Gambas 'for each' may not return organized elements of a linear array, do not use for production development.
-- ~~~~ Brian
Attachment:
OpenPGP_0x78BFB26402F48419.asc
Description: OpenPGP public key
Attachment:
OpenPGP_signature.asc
Description: OpenPGP digital signature
| Looping through an array with FOR EACH | Gianluigi <gradobag@xxxxxxxxxxx> |
| Re: Looping through an array with FOR EACH | BB <adamnt42@xxxxxxxxx> |
| Re: Looping through an array with FOR EACH | Gianluigi <gradobag@xxxxxxxxxxx> |
| Re: Looping through an array with FOR EACH | Brian G <brian@xxxxxxxxxxxxxxxx> |
| Re: Looping through an array with FOR EACH | Gianluigi <gradobag@xxxxxxxxxxx> |