Not-OT Re: OT: iterators/for-each loops (Re: sling.include only follows one path)

2009-09-23 Thread Andreas Kuckartz
> i before include is "1" and after include its "3". > So "i" of the wall is changed by having also "i" in brickgroup template. > for (i = 0; i < brickGroups.size(); i++) { Where is 'i' declared? (Such problems are one of the reasons for for-each loops) Cheers, Andreas

Re: Not-OT Re: OT: iterators/for-each loops (Re: sling.include only follows one path)

2009-09-24 Thread Markus Pallo
only indirect in the for loop. i am wondering why the included script, which has also i in the for loop, changes the value of the surrounding script. I thought includes uses own scope. Markus Andreas Kuckartz wrote: i before include is "1" and after include its "3". So "i" of the wall is ch