Re: [fpc-pascal] values for ThreadSetPriority

2010-02-10 Thread Graeme Geldenhuys
Seth Grover wrote: > http://www.hu.freepascal.org/docs-html/rtl/system/threadsetpriority.html > says that it takes for a priority values from -15 to 15. The comment I always thought I knew the answer, but then when I searched for the answers in the source code, it started getting really confusing

[fpc-pascal] values for ThreadSetPriority

2010-02-10 Thread Seth Grover
After reading the online docs, and searching this list, I'm still confused. Hopefully someone can straighten me out. http://www.hu.freepascal.org/docs-html/rtl/system/threadsetpriority.html says that it takes for a priority values from -15 to 15. The comment to the right of the declaration says th

Re: [fpc-pascal] String buffer

2010-02-10 Thread Graeme Geldenhuys
Honza wrote: > > I guess some memory and/or time could be saved in certain usage > patterns compared to TSTringList and String. There is now a dumb > benchmark on the blog, but nobody should trust other's benchmarks :) Thanks. Good news is that it looks consistently faster than both String and St

Re: [fpc-pascal] String buffer

2010-02-10 Thread Marco van de Voort
In our previous episode, Honza said: > > Append+Append+...+Read... > > I agree in all points, even while having some more ideas on the > naming. If it will be considered for FCL, then let the dev team pick > identifiers of their choice and any other changes/improvements - I'll > be happy to implem

Re: [fpc-pascal] String buffer

2010-02-10 Thread Honza
On Tue, 9 Feb 2010 10:45:55 -0300, Fl?vio Etrusco wrote: > Some (hopefully constructive) commentaries (and then I would suggest > to add to LCL or FCL): > 1) It could be called really TStringBuffer; > 2) The 'W' methods could be called 'Append'; > 3) The GetS method could truncate the string to av

Re: Fw:Re: [fpc-pascal] I have some qustions about free pascal

2010-02-10 Thread Tomas Hajny
On Wed, February 10, 2010 11:51, åé wrote: > -- Original -- > From: "Tomas Hajny"; > Date: Wed, Jan 13, 2010 01:06 AM > To: "FPC-Pascal users discussions"; > Cc: "åé"<799945...@qq.com>; > Subject: Re: [fpc-pascal] I have some qustions about free pascal > > Do yo

Fw:Re: [fpc-pascal] I have some qustions about free pascal

2010-02-10 Thread
-- Original -- From: "Tomas Hajny"; Date: Wed, Jan 13, 2010 01:06 AM To: "FPC-Pascal users discussions"; Cc: "彘"<799945...@qq.com>; Subject: Re: [fpc-pascal] I have some qustions about free pascal Do you refer to using the unit source file (*.pas) or the comp