[fpc-devel] Testing for..in feature
thaddy at thaddy.com
Tue Nov 3 23:03:03 CET 2009
Alexander Klenin wrote:
> I have started testing the new for..in code.
> The very first test I tried found a bug ;-)
> const S = 'abc';//<----???
> var ch: Char;
> for ch in S do Writeln(ch);
I suppose you refer to the fact that the compiler should never allow this ;)
Or do you want this to actually work?? An untyped const is fine with me
and I use it for years, but should it be allowed for for..in?
More information about the fpc-devel