Re: Linker anomalies

2019-11-07 Thread user5678 via Digitalmars-d-learn
On Thursday, 7 November 2019 at 12:14:43 UTC, Luh wrote: Hey there, I figured out some strange behavior ; #1 It seems that the linker doesn't check for the function declared twice first. Instead, it says: "Error: class app.Child use of app.Parent.foo() is hidden by Child; use alias foo =

Re: Linker anomalies

2019-11-07 Thread Luh via Digitalmars-d-learn
On Thursday, 7 November 2019 at 18:45:21 UTC, Ali Çehreli wrote: On 11/07/2019 04:14 AM, Luh wrote: It's not the linker but the "compiler" that is concerned about these things. [...] Oops :o That's an important warning where the programmer can get surprising results depending on whether

Re: Linker anomalies

2019-11-07 Thread Ali Çehreli via Digitalmars-d-learn
On 11/07/2019 04:14 AM, Luh wrote: > Hey there, > > I figured out some strange behavior ; > > #1 > It seems that the linker doesn't check for the function declared twice > first. It's not the linker but the "compiler" that is concerned about these things. > Instead, it says: > > "Error: class

Linker anomalies

2019-11-07 Thread Luh via Digitalmars-d-learn
Hey there, I figured out some strange behavior ; #1 It seems that the linker doesn't check for the function declared twice first. Instead, it says: "Error: class app.Child use of app.Parent.foo() is hidden by Child; use alias foo = Parent.foo; to introduce base class overload set" but