[fpc-pascal] Helpers: Implementation Location influencing the result

Daniel Gaspary dgaspary at gmail.com
Sun Oct 6 01:46:08 CEST 2013


On Sat, Oct 5, 2013 at 8:27 PM, Sven Barth <pascaldragon at googlemail.com> wrote:
> At location A the helper is not yet declared, thus GetAnotherString uses the
> GetString function of its own class. On location B the helper is already
> declared and thus the implementation of GetAnotherString will pick up the
> helper's GetString function instead.

I believed that the location that matters, in this case,  was only the
object instantiation (program/implementation body), because it was, in
both cases, after the helper declaration. A little weird.


Thanks, Sven.



More information about the fpc-pascal mailing list