Can anybody tell me whether I stepped on a bug or I am just forgetting some Set / Enum property?
I made a Set to iterate with For..in, but I accidentally used a Dot instead of a Comma between the elements. The result was that the For "sees" only the item(s) after the Dot as the Example What's Happening in the example ?? program Project1; type TMyEnum = (me1, me2, me3); TMyEnumSet = set of TMyEnum; var e: TMyEnum; begin for e in [me1 . me2] do //It's a dot, not a comma WriteLn(e); end. It works with other combinations, like: [me1 . me2. me3.] // DOT DOT DOT [me1 , me2. me3.] // COMMA DOT DOT My FPC version: 2.7.1 [2013/03/26] for x86_64 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal