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;
begin
for ch in S do Writeln(ch);
end.
---
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?
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel