[fpc-pascal] casting back a pointer to original type

Michael Van Canneyt michael at freepascal.org
Sat May 29 18:28:58 CEST 2010

On Sat, 29 May 2010, Jonas Maebe wrote:

> On 29 May 2010, at 18:11, Michael Van Canneyt wrote:
>> It depends on what you want to achieve. If you make it a static method, then
>> the compiler will emit a warning "function Text hides method of parent
>> class" (or something like it)
>> If you make it virtual, then you must explicitly add  "override" to override the implementation of the method.
> Virtual methods can also hide inherited methods (if you don't add override).
Right. I should have added that.


More information about the fpc-pascal mailing list