[fpc-pascal] {$FINITEFLOAT OFF}

2016-08-03 Thread LacaK
Hi, does we have in FPC something like Delphi {$FINITEFLOAT OFF} ? If not can be implemented in future ? I am trying to avoid FPU exception in case of underflow or overflow values. I have this test code: d := 3; // + or - d := 1/(1+exp(-1*d)); // here I get SIGFPE exception (my guess i

Re: [fpc-pascal] TArray.Sort(array) returns 'Error: Identifier not found "TArray" '

2016-08-03 Thread Maciej Izak
2016-08-04 3:16 GMT+02:00 silvioprog : > So, is this the best way to solve this problem? > TArrayHelper is marked as experimental structure and exist only temporary for bug workaround (see page 1 of https://github.com/dathox/generics.collections/blob/master/GenericsCompatibilityMatrix.pdf). >

Re: [fpc-pascal] TArray.Sort(array) returns 'Error: Identifier not found "TArray" '

2016-08-03 Thread Sven Barth
Am 04.08.2016 03:17 schrieb "silvioprog" : > I got: > > 'Error: Identifier not found "TArray"' > > So I've fixed it with: > > === begin code === > > ... > > {$IFDEF FPC} > TArrayHelper.Sort(ordkeys); > {$ELSE} > TArray.Sort(ordkeys); > {$ENDIF} > > ... > > === end code === > > So, is this t

[fpc-pascal] TArray.Sort(array) returns 'Error: Identifier not found "TArray" '

2016-08-03 Thread silvioprog
Hello, First, thanks a lot for the rtl-generics units, this really was a great contribution to the Free Pascal community! So, sometimes, I need to sort the values of a specialized key/value list, but I can't compile the adapted Delphi XE code below (I'm using MODE DELPHI): === begin code === va

Re: [fpc-pascal] String concatenation failure (again)

2016-08-03 Thread Jürgen Hestermann
Am 2016-08-02 um 20:12 schrieb José Mejuto: > Check the length of the string I think you have a NULL char at the end of every string, so only the first one (up to #00 char) is displayed. Yes, you are right. When I change the code for i := Low(Liste) to High(Liste) d