[fpc-pascal]Bug with virtual methods

Johann Glaser Johann.Glaser at gmx.at
Tue Dec 31 12:20:03 CET 2002


> That is correct behaviour of the compiler. The compiler only searches in
> the scope of C2 for M1. It is the same as with 2 units. U1 and U2 instead
> of C1 and C2.

If the two methods have different names, the program compiles too. The
compiler 'forgets' all overloaded methods except that one which is

Why that? Shouldn all methods be treated as "seperate" ones? So, two
methods with different names are "equally different" as two methods with
just different parameters?


Johann Glaser   <Johann.Glaser at gmx.at>
   Vienna University of Technology
       Electrical Engineering 
____ http://www.johann-glaser.at/ ____

More information about the fpc-pascal mailing list