On 10/3/2020 10:22 π.μ., Mattias Gaertner via fpc-pascal wrote:
On Tue, 10 Mar 2020 00:57:12 -0400
Anthony Walter via fpc-pascal <fpc-pascal@lists.freepascal.org> wrote:
[...]
What should happen is that both examples use the function from the
last unit in the uses clause.
Yes, that's how Pascal usually works and so it works in pas2js.
Strange that fpc does it the other way round.
Bug or feature?
No it does not. The first unit in the uses clause always take presents
over the last. It always has it always should. Don't brake backwards
compatibility.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal