Re: [fpc-pascal] operator overloading question

2007-05-08 Thread Daniƫl Mantione
Op Tue, 8 May 2007, schreef Alexey Pavluchenko: > the compiler (2.0.4) stops with the "impossible operator overload" > message. Two questions arise: 1) why is it considered impossible Overloading pointers turned out to be too problematic in the past, so it was to be disabled. Overloading dynam

[fpc-pascal] operator overloading question

2007-05-08 Thread Alexey Pavluchenko
Hello all, When trying to compile the following code === cut=== unit foo; interface type tbar = record somefield: integer; end; pbar = ^tbar; operator + (a: pbar; b: pbar) c: pbar; implementation operator + (a: pbar; b: pbar) c: pbar; begin end; end. === cut=== the c