[fpc-pascal] Smallint field in TIBConnection of SQLDB

2007-03-12 Thread Funky Beast
Hi, How to detect a Smallint field with TIBConnection? I'm writing a tool to aid in restructuring my projects' databases and their tables. But TIBConnection detects Smallint fields as Integer fields. TIA, Funky Beast ___ fpc-pascal maillist -

Re: [fpc-pascal] FPC compiled program stops with SIGILL on newer hardware (Pentium M 800 MHz)

2007-03-12 Thread Dirk Verwiebe
I made an other test with the dpmiexcp unit, downloaded from: http://www.freepascal.org/cgi-bin/viewcvs.cgi/ and it still it doesn´t work. The unit can be compiled with fpc 1.06 but couldn´t be linked: ERROR while linking. FPC 2.02 can compile and link the unit but it crashed again as

Re: [fpc-pascal] arm big endian questions and info

2007-03-12 Thread Henry Vermaak
here's an update on this. i tried a couple of different things to rule out what can be the problem. i got an nslu2 that i set up with a big endian firmware that runs a different kernel (2.6.16) version than my other board. the results were exactly consistent between these boards. i also tried

[fpc-pascal] Value of runner variable after a for loop

2007-03-12 Thread Luiz Americo Pereira Camara
Take the following example: for i:= 0 to 2 do; WriteLn(i); Can i safely assume that after the for loop the value of i is 2? Thanks in advance Luiz ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Value of runner variable after a for loop

2007-03-12 Thread Michael Van Canneyt
On Mon, 12 Mar 2007, Luiz Americo Pereira Camara wrote: Take the following example: for i:= 0 to 2 do; WriteLn(i); Can i safely assume that after the for loop the value of i is 2? No. I think it is even specified in the pascal standard. Michael.

Re: [fpc-pascal] arm big endian questions and info

2007-03-12 Thread Florian Klaempfl
Henry Vermaak schrieb: here's an update on this. i tried a couple of different things to rule out what can be the problem. i got an nslu2 that i set up with a big endian firmware that runs a different kernel (2.6.16) version than my other board. the results were exactly consistent between

Re: [fpc-pascal] Value of runner variable after a for loop

2007-03-12 Thread Flávio Etrusco
On 3/12/07, Michael Van Canneyt [EMAIL PROTECTED] wrote: On Mon, 12 Mar 2007, Luiz Americo Pereira Camara wrote: Take the following example: for i:= 0 to 2 do; WriteLn(i); Can i safely assume that after the for loop the value of i is 2? No. I think it is even specified in the pascal

RE: [fpc-pascal] Value of runner variable after a for loop

2007-03-12 Thread Andrew Denton
I would NEVER rely on this in production code. The value of the control variable of a For loop after execution should never be relied upon. A simple change in the compiler at some future point could break a lot of your code. Cheers, Andy -Original Message- From: [EMAIL PROTECTED]

Re: [fpc-pascal] arm big endian questions and info

2007-03-12 Thread Henry Vermaak
these results are (everything compiled with -CfSOFT for big endian): 1) writeln('Hello World') outputs Hello WorldHello W. all other writeln and readln calls seem to work after that. 2) i get Runtime error 207 when i attempt floating point operations. Try to get a stack trace please.

Re: [fpc-pascal] Value of runner variable after a for loop

2007-03-12 Thread Flávio Etrusco
I would NEVER rely on this in production code. The value of the control variable of a For loop after execution should never be relied upon. A simple change in the compiler at some future point could break a lot of your code. To be honest I would call it a bug if a comipler didn't warn about it

Re: [fpc-pascal] Value of runner variable after a for loop

2007-03-12 Thread Jonas Maebe
On 12 mrt 2007, at 16:19, Flávio Etrusco wrote: And unless the compiler (programmer) use an extra variable just to attain this behaviour, the value after the loop will 3 (i.e. end value +1). No, it can be anything, and the actual value even depends on the compiler version.

Re: [fpc-pascal] Value of runner variable after a for loop

2007-03-12 Thread Luiz Americo Pereira Camara
Jonas Maebe wrote: On 12 mrt 2007, at 16:19, Flávio Etrusco wrote: And unless the compiler (programmer) use an extra variable just to attain this behaviour, the value after the loop will 3 (i.e. end value +1). No, it can be anything, and the actual value even depends on the compiler

Re: [fpc-pascal] arm big endian questions and info

2007-03-12 Thread Terry Kemp
On Mon, 2007-03-12 at 16:41 +, Henry Vermaak wrote: these results are (everything compiled with -CfSOFT for big endian): 1) writeln('Hello World') outputs Hello WorldHello W. all other writeln and readln calls seem to work after that. 2) i get Runtime error 207 when i