Re: [fpc-pascal] Constants

2006-01-09 Thread Martin Schreiber
On Tuesday 10 January 2006 08.17, Carsten Bager wrote: > The very best would be if things was like this > > Static > St: array[0..4] of char ='12345'; {Placed in text segment} > > Var > St: array[0..4] of char ='12345'; {Placed in data segment} > Or to have any count of named segments which can be

Re: [fpc-pascal] Constants

2006-01-09 Thread Carsten Bager
> Carsten Bager wrote: > > > Hi > > I am programming to an embedded ARM platform and my question > > is, is it possible to force constants to stay in the code segment > > (constant strings etc.) In C you can do this using "static". > > It looks as all string constants are placed in the data segm

Re: [fpc-pascal] Constants

2006-01-09 Thread Martin Schreiber
On Sunday 08 January 2006 13.03, Florian Klaempfl wrote: > Carsten Bager wrote: > > Hi > > I am programming to an embedded ARM platform and my question > > is, is it possible to force constants to stay in the code segment > > (constant strings etc.) In C you can do this using "static". > > It looks

Re: [fpc-pascal] Strange!!

2006-01-09 Thread Jonas Maebe
On 9 jan 2006, at 17:18, Peter Rosendahl wrote: Thank you for your quick answer, how do I get the new version? Is the 2.0.2 available at this point the FIXED version, 2.0.2 is 2.0.2. It will not change. or do I have to recompile from some unstable source ? If you are using Windows, you c

Re: [fpc-pascal] Strange!!

2006-01-09 Thread Peter Rosendahl
Thank you for your quick answer, how do I get the new version? Is the 2.0.2 available at this point the FIXED version, or do I have to recompile from some unstable source ? /Peter JM> On 9 jan 2006, at 17:03, Peter Rosendahl wrote: >> With the EXACT same code compiled with different version

Re: [fpc-pascal] Strange!!

2006-01-09 Thread Jonas Maebe
On 9 jan 2006, at 17:03, Peter Rosendahl wrote: With the EXACT same code compiled with different versions of Freepascal, one reads the string[2] as 2 letter and the other version reads the entire line as string[2]. please can anyone explain this to and possible find a solution It is a bu

[fpc-pascal] Strange!!

2006-01-09 Thread Peter Rosendahl
Hello, I'm a beinner at Pascal, (Ok was 10years since I did someting serious) and have noticed a strange thing when compiling with 2.0.2 version. This is the part where I read a TEXT file with numbers. Procedure Openfile; { Module 1 } VAR Infile : Text; Filename : String[12];