[fpc-pascal] Scoped enums and inferred types
Ryan Joseph
ryan at thealchemistguild.com
Wed Feb 21 10:14:13 CET 2018
> On Feb 21, 2018, at 4:09 PM, Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:
>
> I doubt that many would be using scopedenums for that.
why not? Scoped enums did clean that up a little but still lots of extra typing during assignments and parameters.
That compared to the previous is a still win though (less code is always a good thing).
{$scopedenums on}
type
TTileSortingFlag = ( Static,
Ramp,
Ignore,
Particle,
Floor,
Flat,
Container,
OnRamp,
BufferStatic,
BufferDynamic
);
{$scopedenums off}
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list