[fpc-pascal] Dot syntax for types?

Ryan Joseph ryan at thealchemistguild.com
Sun Jan 14 09:44:41 CET 2018

> On Jan 14, 2018, at 3:27 PM, Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> Those types are called enumerations or enums for short, the variant that requires a point are called scoped enums and the compiler directive you're looking for is "{$scopedenums on}" and only needs to be used for declaring the enum, not when using it. As the switch is a local one you can even mix scoped and unscoped enum declarations in the same unit. The switch is available at least since 3.0.0 though it isn't mentioned in the language reference guide about enums ( https://freepascal.org/docs-html/current/ref/refsu4.html#x26-280003.1.1). 

Ah yes enums. {$scopedenums on} was what I was looking for but it looks like even if I remembered what they were called I still wouldn’t have found the switch. Thanks again.

	Ryan Joseph

More information about the fpc-pascal mailing list