On 20/08/2013 07:32, Xiangrong Fang wrote:
Thanks. Do you mean that the rules I see in the document apply to
NORMAL virtual methods, but not virtual constructors?
for all the rest, you should look for a tutorial.
it is to complex for the mailing list
__
On 20/08/2013 07:32, Xiangrong Fang wrote:
Thanks. Do you mean that the rules I see in the document apply to
NORMAL virtual methods, but not virtual constructors?
They apply to constructors too. But...
A virtual/overridden method is looked up based on the class used in code
TDerived.create; /
Thanks. Do you mean that the rules I see in the document apply to NORMAL
virtual methods, but not virtual constructors?
Also, I have a related question: it seems that to override methods in
ancestor it is required that the method has same signature, however
reintroduce will not have such limita
On 20/08/2013 02:44, Xiangrong Fang wrote:
Hi All,
I am reading this document:
http://www.freepascal.org/docs-html/ref/refsu29.html and doing an
experiment with the following code:
program project1;
{$mode objfpc}{$H+}
type
TBase = class
constructor Create; virtual;
end;
TDerived =
Hi Flavio,
Your findings confirmed mine, but not telling me why? It seems that the
"virtual" keyword has no use at all! To confirm this, I just removed the
"inherited" call in TDerived, then re-run the program with or without
"virtual/override", the result is exactly same, i.e. with c2 (declared
On Tue, Aug 20, 2013 at 1:54 AM, Osvaldo Filho wrote:
> Anyone coud help-me?
>
> user1@movotcf:~/Documentos/Desenvolvimento/pascal/svn/ex/lazarus1010$ make
> bigide
> make -C packager/registration
> make[1]: Entrando no diretório
> `/home/user1/Documentos/Desenvolvimento/pascal/svn/ex/lazarus1010/
Anyone coud help-me?
user1@movotcf:~/Documentos/Desenvolvimento/pascal/svn/ex/lazarus1010$ make
bigide
make -C packager/registration
make[1]: Entrando no diretório
`/home/user1/Documentos/Desenvolvimento/pascal/svn/ex/lazarus1010/packager/registration'
/bin/rm -f ../units/x86_64-linux/fcllaz.ppu
/
On Mon, Aug 19, 2013 at 10:44 PM, Xiangrong Fang wrote:
> Hi All,
>
> I am reading this document:
> http://www.freepascal.org/docs-html/ref/refsu29.html and doing an
> experiment with the following code:
>
> program project1;
> {$mode objfpc}{$H+}
> type
> TBase = class
> constructor Creat
Hi All,
I am reading this document:
http://www.freepascal.org/docs-html/ref/refsu29.html and doing an
experiment with the following code:
program project1;
{$mode objfpc}{$H+}
type
TBase = class
constructor Create; virtual;
end;
TDerived = class(TBase)
constructor Create; override