Re: [fpc-pascal] The "overload" keyword

2013-11-13 Thread Sven Barth
Am 13.11.2013 03:35, schrieb 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

Re: [fpc-pascal] use of "inherited" keyword

2013-11-13 Thread Sven Barth
Am 13.11.2013 02:57, schrieb 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; /

[fpc-pascal] Move with pointers to memory

2013-11-13 Thread Rainer Stratmann
http://www.freepascal.org/docs-html/rtl/system/move.html I have a working function in assembler wich copys a memory block from sorce to destination. Now I want it to do with the move function from unit system, but it does not work. procedure wd_copy( s , d : pointer ; l : longint ); begin mo

Re: [fpc-pascal] Move with pointers to memory

2013-11-13 Thread Tomas Hajny
On Wed, November 13, 2013 09:36, Rainer Stratmann wrote: > http://www.freepascal.org/docs-html/rtl/system/move.html > > I have a working function in assembler wich copys a memory block from > sorce to > destination. > > Now I want it to do with the move function from unit system, but it does > not

Re: [fpc-pascal] Move with pointers to memory

2013-11-13 Thread Rainer Stratmann
On Wednesday 13 November 2013 09:39:27 you wrote: > > Move (S^, D^, L) > > should do it. > > Tomas Yes, thanks. I am confused with the meaning of const source; and var dest; Is there a description of the behaviour of const and var in this case? Why is it not both const or both var? > >

Re: [fpc-pascal] Move with pointers to memory

2013-11-13 Thread Frederic Da Vitoria
2013/11/13 Rainer Stratmann > On Wednesday 13 November 2013 09:39:27 you wrote: > > > > Move (S^, D^, L) > > > > should do it. > > > > Tomas > > Yes, thanks. > > I am confused with the meaning of > > const source; > > and > > var dest; > > Is there a description of the behaviour of const and var

Re: [fpc-pascal] Move with pointers to memory

2013-11-13 Thread Rainer Stratmann
On Wednesday 13 November 2013 10:52:23 you wrote: > 2013/11/13 Rainer Stratmann > > Is there a description of the behaviour of const and var in this case? > > Why is it not both const or both var? > > "source" is where the data "comes from", so the procedure won't modify it > (if there is no mem

Re: [fpc-pascal] Move with pointers to memory

2013-11-13 Thread Frederic Da Vitoria
2013/11/13 Rainer Stratmann > On Wednesday 13 November 2013 10:52:23 you wrote: > > 2013/11/13 Rainer Stratmann > > > Is there a description of the behaviour of const and var in this case? > > > Why is it not both const or both var? > > > > "source" is where the data "comes from", so the proced

Re: [fpc-pascal] Move with pointers to memory

2013-11-13 Thread Sven Barth
Am 13.11.2013 11:07, schrieb Frederic Da Vitoria: 2013/11/13 Rainer Stratmann > On Wednesday 13 November 2013 10:52:23 you wrote: > 2013/11/13 Rainer Stratmann mailto:rainerstratm...@t-online.de>> > > Is there a description of the behaviour of con

Re: [fpc-pascal] Move with pointers to memory

2013-11-13 Thread Frederic Da Vitoria
2013/11/13 Sven Barth > Am 13.11.2013 11:07, schrieb Frederic Da Vitoria: > > 2013/11/13 Rainer Stratmann > >> On Wednesday 13 November 2013 10:52:23 you wrote: >> > 2013/11/13 Rainer Stratmann >> > > Is there a description of the behaviour of const and var in this case? >> > > Why is it not

Re: [fpc-pascal] Move with pointers to memory

2013-11-13 Thread Sven Barth
Am 13.11.2013 11:32, schrieb Frederic Da Vitoria: 2013/11/13 Sven Barth > Am 13.11.2013 11:07, schrieb Frederic Da Vitoria: 2013/11/13 Rainer Stratmann mailto:rainerstratm...@t-online.de>> On Wednesday 13 November 2013 10:52:23 you wrote:

[fpc-pascal] generic/enumerator: Internal error 200301231

2013-11-13 Thread Victor Matuzenko
Hi, I have internal error when I compile the unit (see source below): [doj@korica ~/proj/trunk/core/collection]$ fpc dlist.pas4 dlist.pas4(36,1) Fatal: Internal error 200301231 Fatal: Compilation aborted Error: /usr/local/bin/ppc386 returned an error exitcode (normal if you did not specify a so

Re: [fpc-pascal] generic/enumerator: Internal error 200301231

2013-11-13 Thread Sven Barth
Am 13.11.2013 12:08, schrieb Victor Matuzenko: Hi, I have internal error when I compile the unit (see source below): [doj@korica ~/proj/trunk/core/collection]$ fpc dlist.pas4 dlist.pas4(36,1) Fatal: Internal error 200301231 Fatal: Compilation aborted Error: /usr/local/bin/ppc386 returned an err

[fpc-pascal] paszlib problem: integer overflow

2013-11-13 Thread Dennis Poon
I downloaded the Paszlib-sg from http://sagsehome.net/oss/paszlib-sg.php (as suggested by Paszlib freepascal.org wiki). I works fine on my Delphi 5 until I try to compress a file with size of 70M and it raises the exception of integer flow error. Does anyone have this problem? I initially th

[fpc-pascal] Re: Move with pointers to memory

2013-11-13 Thread leledumbo
> Is there a description of the behaviour of const and var in this case? Not so clear: http://www.freepascal.org/docs-html/ref/refsu59.html A ltle bit clearer: http://docwiki.embarcadero.com/RADStudio/XE5/en/Parameters_(Delphi)#Untyped_Parameters > Why is it not both const or both var? If t

Re: [fpc-pascal] generic/enumerator: Internal error 200301231

2013-11-13 Thread Victor Matuzenko
Thanks, it works! I look forward to 2.8.0 version :) 13.11.2013 16:11, Sven Barth пишет: Am 13.11.2013 12:08, schrieb Victor Matuzenko: Hi, I have internal error when I compile the unit (see source below): [doj@korica ~/proj/trunk/core/collection]$ fpc dlist.pas4 dlist.pas4(36,1) Fatal: Inte