Re: [fpc-pascal] Generics: constructor restriction fail

2014-11-01 Thread Sven Barth
On 31.10.2014 00:04, silvioprog wrote: Hello, Following this article: http://alex.ciobanu.org/?p=51 The compiler does not check the constructor restriction. Try this test: {$mode delphi} TTest = class private // hidding the constructor to cause a compiler error constructor Create

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

2014-11-01 Thread Sven Barth
On 01.11.2014 02:16, Flávio Etrusco wrote: 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 par

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

2014-11-01 Thread Mark Morgan Lloyd
Brian wrote: 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 wer

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

2014-11-01 Thread Michael Van Canneyt
On Fri, 31 Oct 2014, Brian wrote: 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