Re: multi-declaration does not work in the for loop, groovy 2.4

2018-08-06 Thread ocs@ocs
; > > > > > From: "ocs@ocs" > Reply-To: "users@groovy.apache.org" > Date: Monday, August 6, 2018 at 6:37 AM > To: "users@groovy.apache.org" > Subject: multi-declaration does not work in the for loop, groovy 2.4 > > > > Hi there,

Re: multi-declaration does not work in the for loop, groovy 2.4

2018-08-06 Thread mg
Erick" Datum: 06.08.18 15:10 (GMT+00:00) An: users@groovy.apache.org Betreff: Re: multi-declaration does not work in the for loop, groovy 2.4 Same in 2.5.1 from eclipse photon…   org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: /Users/en032339/Documents/

Re: multi-declaration does not work in the for loop, groovy 2.4

2018-08-06 Thread Nelson, Erick
users@groovy.apache.org" Date: Monday, August 6, 2018 at 6:37 AM To: "users@groovy.apache.org" Subject: multi-declaration does not work in the for loop, groovy 2.4 Hi there, I have just bumped into a — presumably — parser error, which causes that a declaration of more variables is not ac

Re: multi-declaration does not work in the for loop, groovy 2.4

2018-08-06 Thread Paul King
Yes, that is by design for 2.4.x, you'll have to bring one of the declarations outside the loop or use one of the many internal iteration approaches. The Parrot parser handles that syntax. On Mon, Aug 6, 2018 at 11:37 PM ocs@ocs wrote: > Hi there, > > I have just bumped into a — presumably — par

multi-declaration does not work in the for loop, groovy 2.4

2018-08-06 Thread ocs@ocs
Hi there, I have just bumped into a — presumably — parser error, which causes that a declaration of more variables is not accepted in a for loop: === 44 /tmp> /usr/local/groovy-2.4.15/bin/groovy q org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: /private/tmp/q.groo