[fpc-pascal] For-in support in the next FPC release (was: PChar & AnsiString)

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Jun 2 14:48:06 CEST 2010


On 02 Jun 2010, at 14:30, Graeme Geldenhuys wrote:

> On 2 June 2010 14:16, Marco van de Voort wrote:
>>
>> Afaik it is merged into 2.4.1 already.
>
> Did somebody actually test it other than Paul (that also implemented
> it)?

Yes (at least other people reported bugs about it on fpc-devel).

> If so, that was a rather quick test for a big compiler change.

There was a discussion about it on core. It was merged because
a) the merge occurred shortly after the previous release, so there was  
a lot of time to test its effect on the fixes branch
b) it did not affect backwards compatibility
c) the compiler internally simply transforms it into a regular while/ 
do or for/do loop with temporary variables, and then the existing code  
takes over. So code was mainly added, which means that that there was  
little risk of breaking existing functionality


Jonas



More information about the fpc-pascal mailing list