[fpc-pascal] Locate method in TBuFDataset

2010-10-19 Thread John
Hi all, Does anyone know if TBuFDataset.Locate honours the TLocateOptions parameter passed to it ?  It certainly doesn't *seem* to work. I am actually using a TSQLQuery against an SQLite3 database, Laz 0.9.28.2, fpc 2.2.4, Win32.  I sho

Re: [fpc-pascal] Can variables be declared within a block?

2010-10-19 Thread Vannus
On 19 October 2010 15:06, Rob Kennedy > wrote: > On Tue, Oct 19, 2010 at 12:23 AM, Jürgen Hestermann < > juergen.hesterm...@gmx.de> wrote: > >> Reimar Grabowski schrieb: >> >> for (int i = 0;...) >>> Can't see anything wrong. I use declaration of variables inside blocks >>> quite often in Java a

Re: [fpc-pascal] What are the issues involved in threads sharing variables?

2010-10-19 Thread Brian Winfrey
> Polling where the list size is highly dynamic you will need protect > it.  I think FPC has thread safe list objects too. Yes it does, Classes.TThreadList I think. I thought it was a conatiner for threads, but it is a safe list. ___ fpc-pascal maillist

Re: [fpc-pascal] Re: Can variables be declared within a block?

2010-10-19 Thread Vinzent Höfler
On Tue, 19 Oct 2010 02:07:25 +0200, Dimitri Smits wrote: on the other hand, what stops the OP from using 'with'? (multiple levels/variables?) "with" contaminates the name space. Locally scoped variables don't. and you won't die from using another stack variable scoped at the beginning of

Re: [fpc-pascal] IntList

2010-10-19 Thread Brian Winfrey
Take a look at http://code.google.com/p/fprb/. I have just perused it, but it looks pretty good. Brian. > > Currently, the FPC team is looking at an implementation of Vlado Boza > for a standard template library for inclusion in FPC. > > The code is on > > http://code.google.com/p/stlpascal > >

Re: [fpc-pascal] IntList

2010-10-19 Thread Michael Van Canneyt
On Tue, 19 Oct 2010, Sven Barth wrote: Am 19.10.2010 19:54, schrieb Juha Manninen (gmail): On Tuesday 19 October 2010 19:10:39 Luiz Americo Pereira Camara wrote: Yes it's ready in fpc 240: uses Fgl; type TIntegerList = specialize TFPGList; Well, yes. It is almost as good as a dedic

Re: [fpc-pascal] IntList

2010-10-19 Thread Sven Barth
Am 19.10.2010 19:54, schrieb Juha Manninen (gmail): On Tuesday 19 October 2010 19:10:39 Luiz Americo Pereira Camara wrote: Yes it's ready in fpc 240: uses Fgl; type TIntegerList = specialize TFPGList; Well, yes. It is almost as good as a dedicated class. It has a Sort method but you mu

Re: [fpc-pascal] IntList

2010-10-19 Thread Juha Manninen (gmail)
On Tuesday 19 October 2010 19:10:39 Luiz Americo Pereira Camara wrote: > Yes it's ready in fpc 240: > > uses > Fgl; > > type > TIntegerList = specialize TFPGList ; Well, yes. It is almost as good as a dedicated class. It has a Sort method but you must feed the compare function for it. It do

Re: [fpc-pascal] IntList

2010-10-19 Thread Luiz Americo Pereira Camara
Juha Manninen (gmail) escreveu: Hi In Lazarus project jcf2 component has an IntList class which is poorly implemented. It depends on integer and pointer being the same size. I will later suggest to replace it. I have a better IntList. See: http://github.com/JuhaManninen/Pascal/blob/master/I

Re: [fpc-pascal] Can variables be declared within a block?

2010-10-19 Thread Rob Kennedy
On Tue, Oct 19, 2010 at 12:23 AM, Jürgen Hestermann < juergen.hesterm...@gmx.de> wrote: > Reimar Grabowski schrieb: > > for (int i = 0;...) >> Can't see anything wrong. I use declaration of variables inside blocks >> quite often in Java and C++ but have never missed it in pascal. Please >> enligh

Re: [fpc-pascal] non visual timer win32

2010-10-19 Thread Graeme Geldenhuys
Op 2010-10-19 10:17, Felipe Monteiro de Carvalho het geskryf: > MyTimer := TTimer.Create(Application); > MyTimer.OnTimer := myHandler; > or even MyTimer := TTimer.Create(nil); MyTimer.OnTimer := myHandler; ...later when application terminates... MyTimer.Free; Regards, - Graeme - --

Re: [fpc-pascal] ReadStr/WriteStr vs Val/Str

2010-10-19 Thread Jonas Maebe
On 19 Oct 2010, at 01:56, Richard Ward wrote: > As a user of the old Macintosh Pascal (later THINK Pascal), both ReadStr and > WriteStr functions were included and I used them quite a bit. The names > were different but the FPC implementation is basically the same as far as I > can tell. >

Re: [fpc-pascal] non visual timer win32

2010-10-19 Thread Felipe Monteiro de Carvalho
MyTimer := TTimer.Create(Application); MyTimer.OnTimer := myHandler; -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC for High Performance Computing (HPC) Components with Application API

2010-10-19 Thread Mark Morgan Lloyd
Andrew Brunner wrote: Ok. You mentioned NPTL. What can you tell me about that? Is that the project that makes pthreads? I'm looking to get the latest and greatest source of posix threads so I draw upon that code and perhaps even come up with a native version for FPC. Any help would be greatl

Re: [fpc-pascal] Can variables be declared within a block?

2010-10-19 Thread Sven Barth
Am 18.10.2010 20:21, schrieb Vannus: On 18 October 2010 15:33, Sven Barth mailto:pascaldra...@googlemail.com>> wrote: Am 18.10.2010 16:20, schrieb Michael Van Canneyt: Object Pascal is a simple, beautiful and easy to read language. The FPC team tries to keep it that