[fpc-pascal] The "overload" keyword

2013-11-12 Thread Xiangrong Fang
Hi All, According to http://www.freepascal.org/docs-html/ref/refsu72.html, the overload keyword is mostly optional and for delphi compatiblity only. But on Oct. 27, Sven replied my question about hide a public constructor in base class: >> I don't understand why this does not work: >> f := TFil

[fpc-pascal] use of "inherited" keyword

2013-11-12 Thread Xiangrong Fang
Hi, Is it OK to use "inherited" in any instance method? i.e. It is OK to do this: procedure TChildClass.DoIt;//override begin inherited DoIt; end; But is it ok to do this: procedure TChildClass.SomethinElse;//NOT DoIt begin inherited DoIt; //... ... end; I tried, it seems ok, but I am n

[fpc-pascal] Re: "identifier not found" case probelm

2013-11-12 Thread Lukasz Sokol
On 12/11/13 16:27, leledumbo wrote: >> I have a feeling this 'returns' may be a keyword... > > No, it is not, I believe. Reserved words are listed in the docs. > Yeah, I checked too, 'returns' isn't a keyword. -ENOCRYSTALBALL but /maybe/ the 'returns' is declared 'under' the code in question s

[fpc-pascal] Re: "identifier not found" case probelm

2013-11-12 Thread leledumbo
> I have a feeling this 'returns' may be a keyword... No, it is not, I believe. Reserved words are listed in the docs. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/identifier-not-found-case-probelm-tp5717460p5717471.html Sent from the Free Pascal - General