Re: [fpc-pascal] Generic specialization using $mode objfpc

2014-10-31 Thread leledumbo
> Hm... so I'll choose the mode delphi in my new projects to type less code hehe... You actually ended up typing much less using objfpc style generics. Think of how many angle brackets you would need to type in Delphi mode? And how many if the specialized type changes? ;) Delphi generics can actua

Re: [fpc-pascal] FPC Heap Management : sub-allocation ?

2014-10-31 Thread Brian
Frederic Da Vitoria wrote > I think that Brian is asking if a memory leak could eat the system's > memory > irreversibly. IIUC in Windows, when the program is stopped, all it's > memory > is freed, even if the program leaked memory. I don't know about Linux, but > I'd be surprised if it weren't the

Re: [fpc-pascal] [OT] Generics and Type Constraints sample

2014-10-31 Thread Flávio Etrusco
On Fri, Oct 31, 2014 at 12:08 PM, silvioprog wrote: > On Fri, Oct 31, 2014 at 11:23 AM, Sven Barth > wrote: >> >> Am 30.10.2014 20:49 schrieb "silvioprog" : >> > TMath, constructor> = class >> >> It is not yet possible to reuse a type parameter directly in the parameter >> declaration. There al

Re: [fpc-pascal] Why TSdfDataSet doesn't simply return FCurRec as RecNo?

2014-10-31 Thread Luca Olivetti
El 31/10/14 a les 12:13, Joost van der Sluis ha escrit: >> >> Well, if you "fix" the dbgrid not to use RecNo, I'm still left with my >> original problem of knowing if I'm positioned at the first or the last >> record (specifically for a TSdfDataset, where FCurRec is the correct >> answer, and I st

Re: [fpc-pascal] FPC Heap Management : sub-allocation ?

2014-10-31 Thread Frederic Da Vitoria
2014-10-31 16:33 GMT+01:00 Michael Van Canneyt : > > > On Fri, 31 Oct 2014, Brian wrote: > > Thanks Sven. >> >> Do you know how it behaves when running under Linux? >> > > What do you mean with this question ? > > Large memory blocks are allocated directly from the OS. > For small memory blocks,

Re: [fpc-pascal] FPC Heap Management : sub-allocation ?

2014-10-31 Thread Michael Van Canneyt
On Fri, 31 Oct 2014, Brian wrote: Thanks Sven. Do you know how it behaves when running under Linux? What do you mean with this question ? Large memory blocks are allocated directly from the OS. For small memory blocks, pools are allocated from the OS, and the small memory blocks are then

Re: [fpc-pascal] FPC Heap Management : sub-allocation ?

2014-10-31 Thread Brian
Thanks Sven. Do you know how it behaves when running under Linux? -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/FPC-Heap-Management-sub-allocation-tp5720419p5720423.html Sent from the Free Pascal - General mailing list archive at Nabble.com.

Re: [fpc-pascal] [OT] Generics and Type Constraints sample

2014-10-31 Thread silvioprog
On Fri, Oct 31, 2014 at 11:23 AM, Sven Barth wrote: > Am 30.10.2014 20:49 schrieb "silvioprog" : > > TMath, constructor> = class > > It is not yet possible to reuse a type parameter directly in the parameter > declaration. There already exists a bug report though. > > Regards, > Sven > Very nic

Re: [fpc-pascal] FPC Heap Management : sub-allocation ?

2014-10-31 Thread Sven Barth
Am 31.10.2014 15:21 schrieb "Brian" : > > Does FPC implement sub-allocation , in which the user program allocates a > block of memory from the heap , and only "plays" in that sub-allocated block > , such that if the user program has a serious memory leak , the user program > may crash but it canno

Re: [fpc-pascal] [OT] Generics and Type Constraints sample

2014-10-31 Thread Sven Barth
Am 30.10.2014 20:49 schrieb "silvioprog" : > TMath, constructor> = class It is not yet possible to reuse a type parameter directly in the parameter declaration. There already exists a bug report though. Regards, Sven ___ fpc-pascal maillist - fpc-pa

[fpc-pascal] FPC Heap Management : sub-allocation ?

2014-10-31 Thread Brian
Does FPC implement sub-allocation , in which the user program allocates a block of memory from the heap , and only "plays" in that sub-allocated block , such that if the user program has a serious memory leak , the user program may crash but it cannot exhaust the OS memory and cause the OS to cras

Re: [fpc-pascal] Why TSdfDataSet doesn't simply return FCurRec as RecNo?

2014-10-31 Thread Joost van der Sluis
On 10/31/2014 10:06 AM, Luca Olivetti wrote: El 30/10/14 a les 22:44, Michael Van Canneyt ha escrit: Delphi DBGrid does not use recno, so it must be possible... AFAIK TDatalink has special provisions to provide a window buffer. Well, if you "fix" the dbgrid not to use RecNo, I'm still left wit

Re: [fpc-pascal] Why TSdfDataSet doesn't simply return FCurRec as RecNo?

2014-10-31 Thread Joost van der Sluis
On 10/30/2014 10:44 PM, Michael Van Canneyt wrote: On Thu, 30 Oct 2014, Joost van der Sluis wrote: On 10/30/2014 04:34 PM, Michael Van Canneyt wrote: On Thu, 30 Oct 2014, Michael Van Canneyt wrote: On Thu, 30 Oct 2014, Luca Olivetti wrote: Hello, TFixedFormatDataSet (ancestor of TSd

Re: [fpc-pascal] Why TSdfDataSet doesn't simply return FCurRec as RecNo?

2014-10-31 Thread Luca Olivetti
El 30/10/14 a les 22:44, Michael Van Canneyt ha escrit: > > > On Thu, 30 Oct 2014, Joost van der Sluis wrote: ... >> Easy: Some systems use the recno as some sort of 'bookmark'. And some >> people insist that this is the correct behaviour for a dataset. (Note Since a dataset provides GetBookmark