Re: [fpc-pascal] pc -> fpc porting question: reset()

2006-04-17 Thread Jonas Maebe
On 17 Apr 2006, at 16:12, Daniel Franke wrote: It's correct behaviour to crash if the file ('ipedfile.dat' in this case) does not exist? Yes. Runtime error 2 means that the file does not exist. I'm set. Thanks! See also http://www.freepascal.org/docs-html/rtl/system/ioresult.html (in

Re: [fpc-pascal] pc -> fpc porting question: reset()

2006-04-17 Thread Daniel Franke
On Monday 17 April 2006 16:18, Michael Van Canneyt wrote: > On Mon, 17 Apr 2006, Daniel Franke wrote: > > > > 6065: reset(ipedfile,'ipedfile.dat'); > > > > 6066: reset(datafile,'datafile.dat'); > > > > > > Would become: > > > > > > Assign(ipedfile,'ipedfile.dat') > > > Reset(ipedfile); > > > > Br

Re: [fpc-pascal] pc -> fpc porting question: reset()

2006-04-17 Thread Michael Van Canneyt
On Mon, 17 Apr 2006, Daniel Franke wrote: > > > > 6065: reset(ipedfile,'ipedfile.dat'); > > > 6066: reset(datafile,'datafile.dat'); > > > > Would become: > > > > Assign(ipedfile,'ipedfile.dat') > > Reset(ipedfile); > > > > Assign(datafile,'datafile.dat'); > > Reset(datafile); > > Micheal, > ma

Re: [fpc-pascal] pc -> fpc porting question: reset()

2006-04-17 Thread Michael Van Canneyt
On Mon, 17 Apr 2006, Daniel Franke wrote: > > > > > 6065: reset(ipedfile,'ipedfile.dat'); > > > 6066: reset(datafile,'datafile.dat'); > > > > Would become: > > > > Assign(ipedfile,'ipedfile.dat') > > Reset(ipedfile); > > > Breakpoint 1, INITILINK () at ilink51.p:6065 > 6065 Assign(ipedfil

Re: [fpc-pascal] pc -> fpc porting question: reset()

2006-04-17 Thread Daniel Franke
> > 6065: reset(ipedfile,'ipedfile.dat'); > > 6066: reset(datafile,'datafile.dat'); > > Would become: > > Assign(ipedfile,'ipedfile.dat') > Reset(ipedfile); Breakpoint 1, INITILINK () at ilink51.p:6065 6065 Assign(ipedfile,'ipedfile.dat'); (gdb) next 6066 Reset(ipedfile); (gdb) Runt

Re: [fpc-pascal] pc -> fpc porting question: reset()

2006-04-17 Thread Daniel Franke
> > 6065: reset(ipedfile,'ipedfile.dat'); > > 6066: reset(datafile,'datafile.dat'); > > Would become: > > Assign(ipedfile,'ipedfile.dat') > Reset(ipedfile); > > Assign(datafile,'datafile.dat'); > Reset(datafile); Micheal, many thanks for your fast reply! Err, I assume this also holds for "rewr

Re: [fpc-pascal] pc -> fpc porting question: reset()

2006-04-17 Thread Michael Van Canneyt
On Mon, 17 Apr 2006, Daniel Franke wrote: > Hi all. > > I'm a pascal noob who was given the task to compile a couple of ancient pascal > files, originally written for "Sun Pascal pc compiler". > > Since I don't know anything about pascal, fpc's error messages gave me sort of > a headache. Nevert

[fpc-pascal] pc -> fpc porting question: reset()

2006-04-17 Thread Daniel Franke
Hi all. I'm a pascal noob who was given the task to compile a couple of ancient pascal files, originally written for "Sun Pascal pc compiler". Since I don't know anything about pascal, fpc's error messages gave me sort of a headache. Nevertheless, I'm almost there - but not quite. i still get