[fpc-pascal] Name collisions in scoped enums

Ryan Joseph genericptr at gmail.com
Mon May 4 09:07:41 CEST 2020


> On May 4, 2020, at 12:40 PM, Sven Barth <pascaldragon at googlemail.com> wrote:
> No, keywords have a higher priority than identifiers, their context doesn't matter (e.g. you can't have a method named "File" either though one could apply the same reasoning here). If you want to use keywords you have to escape them using "&".

Methods could be called without a prefix and scoped enums must under all circumstances use their prefix right? I thought that made them unique in this regard. It would be nice to have those names freed up also if it was safe.

	Ryan Joseph

More information about the fpc-pascal mailing list