[jira] [Closed] (GROOVY-8102) Does/could Groovy support multiple variable definitions in for loop?

2018-03-06 Thread Paul King (JIRA)

 [ 
https://issues.apache.org/jira/browse/GROOVY-8102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul King closed GROOVY-8102.
-

> Does/could Groovy support multiple variable definitions in for loop?
> 
>
> Key: GROOVY-8102
> URL: https://issues.apache.org/jira/browse/GROOVY-8102
> Project: Groovy
>  Issue Type: Question
>  Components: Compiler
>Reporter: Eric Milles
>Assignee: Daniel Sun
>Priority: Minor
> Fix For: 2.6.0-alpha-1
>
>
> I ask this because it has been causing a lot of headaches when we convert 
> Java files to Groovy.  This form seems to fail and seems reasonably useful:
> {code}
> for (int i = 0, n = list.length; i < n; i +=1) {
> {code}
> It seems the definition of two or more variables in the for initializer is 
> not supported.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Closed] (GROOVY-8102) Does/could Groovy support multiple variable definitions in for loop?

2017-05-01 Thread Paul King (JIRA)

 [ 
https://issues.apache.org/jira/browse/GROOVY-8102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul King closed GROOVY-8102.
-

> Does/could Groovy support multiple variable definitions in for loop?
> 
>
> Key: GROOVY-8102
> URL: https://issues.apache.org/jira/browse/GROOVY-8102
> Project: Groovy
>  Issue Type: Question
>  Components: Compiler
>Reporter: Eric Milles
>Assignee: Daniel Sun
>Priority: Minor
> Fix For: 3.0
>
>
> I ask this because it has been causing a lot of headaches when we convert 
> Java files to Groovy.  This form seems to fail and seems reasonably useful:
> {code}
> for (int i = 0, n = list.length; i < n; i +=1) {
> {code}
> It seems the definition of two or more variables in the for initializer is 
> not supported.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)