> On Apr 23, 2018, at 8:22 PM, LacaK <la...@zoznam.sk> wrote: > > Later in uses clause wins ... as for other cases where in different units are > used same names > But probably problem is deeper , what I am not aware of ;-)
Swift just gives a compiler error if there is a redefinition of method in the current scope. Very simple and works just fine. Why not do what Swift/Objective-C does given this is a proven implementation? At least as a starting point if nothing else. extension MyObject { func foo() { } } extension MyObject { func foo() { // redefinition error } } Regards, Ryan Joseph _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal