Re: [fpc-pascal] Sin function

2010-12-29 Thread Ivo Steinmann
Hi Ingemar 0.0 and -0.0 is the same number ;) it's just a quirk of the IEEE floating point format, that there exists a positiv and negative zero (because they use a sign bit). -Ivo Am 29.12.2010 12:17, schrieb Ingemar Ragnemalm: faber bor...@gmail.com wrote: Hi, according to

Re: [fpc-pascal] readonly variables

2009-11-29 Thread Ivo Steinmann
are from Europe and english is not their first language... -Ivo Steinmann (Swiss, just to mention that english isn't my first language either) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Using C functions

2009-11-21 Thread Ivo Steinmann
Wimpie Nortje schrieb: Jonas Maebe wrote: On 21 Nov 2009, at 20:16, Wimpie Nortje wrote: Is there any way to use a C library that use the __fastcall calling convention? Not at this time. Also note that that the fastcall convention is not standardised and varies between different

Re: [fpc-pascal] Compiler error

2009-01-25 Thread Ivo Steinmann
Michael Van Canneyt schrieb: On Sun, 25 Jan 2009, Vincent Snijders wrote: Michael Van Canneyt schreef: On Sun, 25 Jan 2009, Vincent Snijders wrote: Jonas Maebe schreef: On 25 Jan 2009, at 11:43, Chris Kirkpatrick wrote: I have recently been getting

Re: [fpc-pascal] How to allocate a 2D array?

2009-01-12 Thread Ivo Steinmann
you can try var YourArray, Row: PFloat; Width: Integer; Height: Integer; // alloc array GetMem(YourArray, Width*Height*Sizeof(Float)); // access point (X, Y), while X in [0,Width-1] and Y in [Y, Height-1] YourArray[X + Y*Width] := ... // access row (Y) Row := @YourArray[Y*Width]; Row[X] :=