Re: [fpc-pascal] Understanding virtual methods

2013-08-19 Thread Martin
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 __

Re: [fpc-pascal] Understanding virtual methods

2013-08-19 Thread Martin
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; /

Re: [fpc-pascal] Understanding virtual methods

2013-08-19 Thread Xiangrong Fang
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

Re: [fpc-pascal] Understanding virtual methods

2013-08-19 Thread Martin
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 =

Re: [fpc-pascal] Understanding virtual methods

2013-08-19 Thread Xiangrong Fang
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

Re: [fpc-pascal] Build Lazarus Ide - On "make bigide": lazaruspackageintf.pas(102, 1) Fatal: Internal error 2013081601

2013-08-19 Thread Flávio Etrusco
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/

[fpc-pascal] Build Lazarus Ide - On "make bigide": lazaruspackageintf.pas(102, 1) Fatal: Internal error 2013081601

2013-08-19 Thread Osvaldo Filho
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 /

Re: [fpc-pascal] Understanding virtual methods

2013-08-19 Thread Flávio Etrusco
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

[fpc-pascal] Understanding virtual methods

2013-08-19 Thread Xiangrong Fang
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