Re: [fpc-pascal] Access inherited^2

2008-08-10 Thread Johann Glaser
Hi! Am Sonntag, den 10.08.2008, 10:01 +0200 schrieb Vincent Snijders: > Johann Glaser schreef: > > Hi! > > > > How can I access an inherited inherited method which was overloaded? > > Try the following, mark the constructors as overloaded: > > > > == Example: == > > > > {$mode objfpc}{

Re: [fpc-pascal] Access inherited^2

2008-08-10 Thread Vincent Snijders
Johann Glaser schreef: Hi! How can I access an inherited inherited method which was overloaded? Try the following, mark the constructors as overloaded: == Example: == {$mode objfpc}{$H+} Program TestInherited; Uses Classes, SysUtils; Type TFirst = class Constructor Create(A,

Re: [fpc-pascal] Access inherited^2

2008-08-04 Thread Joao Morais
Johann Glaser wrote: Hi! Am Montag, den 04.08.2008, 08:23 -0300 schrieb Joao Morais: Johann Glaser wrote: How can I access an inherited inherited method which was overloaded? You can't, one of them will need to have a different name. Thanks. Why is a method hidden, just because it has the

Re: [fpc-pascal] Access inherited^2

2008-08-04 Thread Johann Glaser
Hi! Am Montag, den 04.08.2008, 08:23 -0300 schrieb Joao Morais: > Johann Glaser wrote: > > How can I access an inherited inherited method which was overloaded? > > You can't, one of them will need to have a different name. Thanks. Why is a method hidden, just because it has the same name? Isn't

Re: [fpc-pascal] Access inherited^2

2008-08-04 Thread Zaher Dirkey
try (but i not like it ) begin TFirst(Self).Create(A, B, 0); end; ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Access inherited^2

2008-08-04 Thread Joao Morais
Johann Glaser wrote: How can I access an inherited inherited method which was overloaded? You can't, one of them will need to have a different name. Joao Morais ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/m

Re: [fpc-pascal] Access inherited^2

2008-08-03 Thread Alexey Taran
Johann Glaser writes: > Hi! > > How can I access an inherited inherited method which was overloaded? > AFAIK TThird inherits Create method not from TFirst, but from TSecond, i.e. TThird.Create calls TSecond.Create, not TFirst.Create. ___ fpc-pascal mai

[fpc-pascal] Access inherited^2

2008-08-03 Thread Johann Glaser
Hi! How can I access an inherited inherited method which was overloaded? == Example: == {$mode objfpc}{$H+} Program TestInherited; Uses Classes, SysUtils; Type TFirst = class Constructor Create(A,B,C:Integer); End; TSecond = class(TFirst) Constructor Create(A,B:Integer);