[fpc-pascal] How to instantiate a public type in a generic class

2015-05-17 Thread luciano de souza
Hello listers, Using Freepascal 2.6.4, I have a problem about generics. In short, I can't specialize a class with a subtype of a type declared with "public type". Let me try to explain. In dopf.pas, I have: type generic TdGOpf = class(TdComponent) public type TEntities = specialize TFPGObjectLis

Re: [fpc-pascal] How to instantiate a public type in a generic class

2015-05-17 Thread Sven Barth
Am 17.05.2015 20:46 schrieb "luciano de souza" : > > Hello listers, > > Using Freepascal 2.6.4, I have a problem about generics. In short, I > can't specialize a class with a subtype of a type declared with > "public type". Let me try to explain. > > In dopf.pas, I have: > > type > generic TdGOpf =

[fpc-pascal] Truncate procedure unable to work under Linux, is this a bug?

2015-05-17 Thread Géza Kovacs Géza
Truncate procedure unable to work under Linux, is this a bug? This code is unable to work under linux: the Truncate drops an error message if the file is larger than 2 or 3 GB. I tested it with Free Pascal 2.6.4 under Debian Jessie 64 bit. It produce the same error message under Ubuntu 12.04 32 bit