[fpc-pascal] Re: Coverity for FPC?!?

2012-11-14 Thread Reinier Olislagers
On 13-11-2012 18:31, leledumbo wrote: > http://code.google.com/p/delphi-code-coverage/ > http://www.peganza.com/ > http://www.twodesk.com/castalia/codeanalysis.html > Thanks, Leledumbo! ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

[fpc-pascal] chr does not return an error when number bigger then byte enters

2012-11-14 Thread ik
Hello, I'ved started a crossaide against PHP (http://idkn.wordpress.com/2012/11/14/why-php-must-be-abandoned-in-my-opinion/), due to few issues it have such as chr(256) will return ascii "0". But then I tested it with FPC, and it acts exactly the same, while many programming languages report on su

Re: [fpc-pascal] chr does not return an error when number bigger then byte enters

2012-11-14 Thread Jonas Maebe
On 14 Nov 2012, at 17:33, ik wrote: > begin > writeln(chr(256)); // because it is constant, the compiler only yell warning > end. > > Why does FPC allow such value to enter chr without raising something up ? You can get an error by enabling range checking (-Cr on the command line or {$r+} in

[fpc-pascal] A question about generic collections - maybe...

2012-11-14 Thread bsquared
Hello, I am wondering what the best approach to this problem is. I have what amounts to a Tstringlist that I am attempting to use generics for typing the objects and I would like to get the names and values as lists. I am thinking something along the lines of the following, but it doesn't fe

[fpc-pascal] Re: A question about generic collections - maybe...

2012-11-14 Thread bsquared
On 11/14/2012 12:10 PM, bsquared wrote: Hello, I am wondering what the best approach to this problem is. I have what amounts to a Tstringlist that I am attempting to use generics for typing the objects and I would like to get the names and values as lists. I am thinking something along the lin

[fpc-pascal] FPObserver Examples anywhere?

2012-11-14 Thread bsquared
Hello, Does anyone know of any example code for the FPObserver interface? Preferable with Collections. Thank you. -- Regards, Brian ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal