Re: Feedback on ForStatement

"Milles, Eric (TR Technology) via dev" <dev-GSC0n/0aZo1d/SJB6HiN2Ni2O/[email protected]>
Newsgroups gmane.comp.lang.groovy.devel
Message-ID <PH7PR03MB7224D65643D496B9157633A18A65A@PH7PR03MB7224.namprd03.prod.outlook.com>
index and value variable are both null — they are for the for-each / for-in style
________________________________
From: Jochen Theodorou <[email protected]>
Sent: Monday, February 9, 2026 10:47 AM
To: dev-GSC0n/0aZo1d/SJB6HiN2Ni2O/[email protected] <dev-GSC0n/0aZo1d/SJB6HiN2Ni2O/[email protected]>
Subject: Re: Feedback on ForStatement

On 09. 02. 26 16: 13, Milles, Eric (TR Technology) via dev wrote: >> How does this all work if more than one variable is defined? > > "for (int i = 0, n = 10; i < n; i += 1)" still falls under > getCollectionExpression() returns


On 09.02.26 16:13, Milles, Eric (TR Technology) via dev wrote:
>> How does this all work if more than one variable is defined?
>
> "for (int i = 0, n = 10; i < n; i += 1)" still falls under
> getCollectionExpression() returns a ClosureListExpression

and what is the index variable then?  This all feels a bit incomplete

bye Jochen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.