Re: [Gambas-user] modifying an enumerated set during the loop

2014-06-24 Thread B Bruen
On Wed, 25 Jun 2014 02:43:11 +0200 Benoît Minisini wrote: > Le 25/06/2014 02:30, B Bruen a écrit : > > I realise that modifying the enumerated set during a For Each loop is (Cut) > > No. An array is an object, and aTest a variable that owns a *reference* > to the array. If you set aTest to NULL

Re: [Gambas-user] modifying an enumerated set during the loop

2014-06-24 Thread Benoît Minisini
Le 25/06/2014 02:30, B Bruen a écrit : > I realise that modifying the enumerated set during a For Each loop is > fraught with danger but I do have a situation where this is > "necessary". The following is a very simplified mock up of an anomaly > in gambas that I am seeing. The real situation is c

[Gambas-user] modifying an enumerated set during the loop

2014-06-24 Thread B Bruen
I realise that modifying the enumerated set during a For Each loop is fraught with danger but I do have a situation where this is "necessary". The following is a very simplified mock up of an anomaly in gambas that I am seeing. The real situation is complex, I'll explain it later in this post.