[yast-devel] Is it allowed to modify one same list via foreach?

2009-12-02 Thread Johannes Meixner
Hello, is such code allowed: list string words = [ Jane, John ]; integer index = -1; foreach( string word, words, { index = index + 1; words[index] = Hello + word; } );

Re: [yast-devel] Is it allowed to modify one same list via foreach?

2009-12-02 Thread Arvin Schnell
On Wed, Dec 02, 2009 at 02:22:06PM +0100, Johannes Meixner wrote: Hello, is such code allowed: list string words = [ Jane, John ]; integer index = -1; foreach( string word, words, { index = index +

Re: [yast-devel] Is it allowed to modify one same list via foreach?

2009-12-02 Thread Klaus Kaempf
* Johannes Meixner jsm...@suse.de [Dec 02. 2009 15:10]: Hello, On Dec 2 14:36 Arvin Schnell wrote (shortened): On Wed, Dec 02, 2009 at 02:22:06PM +0100, Johannes Meixner wrote: Hello, is such code allowed: list