[fpc-pascal] Inline scoped enums

Роман runewalsh at inbox.ru
Sun Apr 8 03:33:58 CEST 2018

 >> How can this code
 >> {$scopedenums on}
 >> type
 >> 	Bar = set of (A, B, C);
 >> refer to A, B, C?
 > Bar.A
Actually Bar.A won't work, notice the "set of".
Same problem with var x: (a, b, c).
I wonder could they make such code to not compile at all...

More information about the fpc-pascal mailing list