[fpc-pascal] Name collisions in scoped enums

Ryan Joseph genericptr at gmail.com
Tue May 5 10:37:19 CEST 2020

> On May 5, 2020, at 12:19 PM, Sven Barth <pascaldragon at googlemail.com> wrote:
> Right now it's clear what procedure is called, namely the one with the open array. If we'd allow scoped enums without their enum type then this would result in a "can't decide which method to call". This example might appear constructed, but imagine these to procedures coming from two different, unrelated units.

I wonder how Swift accomplished this then. Anyways, I thought it was a nice feature in Swift but it's not important at all.

	Ryan Joseph

More information about the fpc-pascal mailing list