Re: [fpc-pascal] Class helpers and properties

2012-01-28 Thread Sven Barth
On 27.01.2012 23:51, Mark Morgan Lloyd wrote: Sven Barth wrote: On 27.01.2012 22:46, Mark Morgan Lloyd wrote: If a class has a public reader property like this: TLexemeList= class(TObject) protected fValue: TPrimaevalValue; public property Value: TPrimaevalValue read fValue; ... Note that

Re: [fpc-pascal] Class helpers and properties

2012-01-28 Thread Mark Morgan Lloyd
Sven Barth wrote: On 27.01.2012 23:51, Mark Morgan Lloyd wrote: Sven Barth wrote: On 27.01.2012 22:46, Mark Morgan Lloyd wrote: If a class has a public reader property like this: TLexemeList= class(TObject) protected fValue: TPrimaevalValue; public property Value: TPrimaevalValue read

[fpc-pascal] Unclear documentation of Trim(), TrimLeft(), TrimRight() functions

2012-01-28 Thread Bernd
There it reads: Trim strips blank characters (spaces) at the beginning and end of S and returns the resulting string. Only #32 characters are stripped.. But from looking into the source it seems it will strip all these characters: [#0..#32] and not only #32 (space). Bernd

[fpc-pascal] FCL-STL's TVectorT and removing of elements

2012-01-28 Thread Sven Barth
Hello together! Can it be that the TVectorT type of FCL-STL has some problems when deleting elements? At least the following code generates an exception when running it: program fclstltest1; {$mode objfpc} uses gvector; type TMyVector = specialize TVectorLongInt; var v: TMyVector;

Re: [fpc-pascal] FCL-STL's TVectorT and removing of elements

2012-01-28 Thread Kornel Kisielewicz
On Sat, Jan 28, 2012 at 7:30 PM, Sven Barth pascaldra...@googlemail.com wrote: Hello together! Can it be that the TVectorT type of FCL-STL has some problems when deleting elements? At least the following code generates an exception when running it: program fclstltest1; {$mode objfpc}

Re: [fpc-pascal] FCL-STL's TVectorT and removing of elements

2012-01-28 Thread Sven Barth
On 28.01.2012 20:10, Kornel Kisielewicz wrote: On Sat, Jan 28, 2012 at 7:30 PM, Sven Barthpascaldra...@googlemail.com wrote: Hello together! Can it be that the TVectorT type of FCL-STL has some problems when deleting elements? At least the following code generates an exception when running

Re: [fpc-pascal] FCL-STL's TVectorT and removing of elements

2012-01-28 Thread Kornel Kisielewicz
On Sat, Jan 28, 2012 at 9:27 PM, Sven Barth pascaldra...@googlemail.com wrote: On 28.01.2012 20:10, Kornel Kisielewicz wrote: Woah, where is that unit from? It's part of FPC's packages in 2.7.1 (package fcl-stl). They also compile in 2.6.0 if you download their source. I just wondered

Re: [fpc-pascal] FCL-STL's TVectorT and removing of elements

2012-01-28 Thread Sven Barth
On 28.01.2012 21:51, Kornel Kisielewicz wrote: On Sat, Jan 28, 2012 at 9:27 PM, Sven Barthpascaldra...@googlemail.com wrote: On 28.01.2012 20:10, Kornel Kisielewicz wrote: Woah, where is that unit from? It's part of FPC's packages in 2.7.1 (package fcl-stl). They also compile in 2.6.0 if