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

2014-11-13 Thread leledumbo
> Awesome. =) It is, though the syntax is still evolving, but initial decision about is what interests me as it differs a lot from C++. Delphi syntax seems to copy from C++ as is. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Generic-specialization-using-mo

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

2014-11-13 Thread silvioprog
On Tue, Nov 11, 2014 at 7:25 PM, Sven Barth wrote: > On 11.11.2014 22:48, silvioprog wrote: > >> Oh, sorry. Just: >> >> unit Core.Singleton; >> >> {$mode objfpc}{$H+} >> >> interface >> >> type >> >>{ TSingleton } >> >>generic TSingleton = class(TObject) >>public >> class functio

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

2014-11-13 Thread silvioprog
On Tue, Nov 11, 2014 at 7:08 PM, Chriss Kalogeropoulos < iz.iznog...@gmail.com> wrote: > Hi all, > > I am not sure about the constructor case but I consider the FPC > implementation of generics much more powerful than Delphi's assuming that > Sven's comment actually works as expected. > The fact t