Re: [fpc-pascal] FORTRAN from FreePascal

2017-11-18 Thread Adriaan van Os
Mark Morgan Lloyd wrote: I think that conventional wisdom is that if somebody's written numerical analysis code you don't change it gratuitously, since any alterations will change rounding errors etc. For some reason, that seems to apply particularly to FORTRAN programs :-) The reason being

Re: [fpc-pascal] FORTRAN from FreePascal

2017-11-18 Thread Adriaan van Os
Mark Morgan Lloyd wrote: Except that when you're calling into a DLL (.so on Linux etc.) I don't think you have much chance of seeing the inside of the library code. On Mac OS X, which is actually a BSD UNIX, I debug plug-in code all the time. Not an issue at all. Regards, Adriaan van Os

Re: [fpc-pascal] Seek to EOF of file of byte

2017-11-18 Thread Mark Morgan Lloyd
On 18/11/17 21:15, pasc...@piments.com wrote: On 18/11/17 20:27, Mark Morgan Lloyd wrote:> because the program is being viewed critically by the ALGOL programmer > whose code Algol, one my all time favourite languages. while wendif fi why is this not universally adopted? I still

Re: [fpc-pascal] Seek to EOF of file of byte

2017-11-18 Thread pascalX
On 18/11/17 20:27, Mark Morgan Lloyd wrote: because the program is being viewed critically by the ALGOL programmer whose code Algol, one my all time favourite languages. while wend if fi why is this not universally adopted? I still comment my C code with fi's and wend's to keep

Re: [fpc-pascal] FORTRAN from FreePascal

2017-11-18 Thread pascalX
On 18/11/17 20:14, Mark Morgan Lloyd wrote: I think that conventional wisdom is that if somebody's written numerical analysis code you don't change it gratuitously, since any alterations will change rounding errors etc. For some reason, that seems to apply particularly to FORTRAN programs :-)

Re: [fpc-pascal] Seek to EOF of file of byte

2017-11-18 Thread Mark Morgan Lloyd
On 18/11/17 19:30, Graeme Geldenhuys wrote: On 2017-11-18 15:44, Mark Morgan Lloyd wrote:> How should one do this?> https://www.freepascal.org/docs-html/current/rtl/system/seekeof.html> implies that it's only for text files, Seek(f, FileSize(f)) seems excessive. Just curious, why would you

Re: [fpc-pascal] FORTRAN from FreePascal

2017-11-18 Thread Mark Morgan Lloyd
On 18/11/17 19:45, Bo Berglund wrote: On Sat, 18 Nov 2017 17:06:25 +, Mark Morgan Lloyd wrote: I find myself wondering, in part due to conversations elsewhere: can the >Lazarus IDE do anything at all sane with a FORTRAN routine called from >Pascal? In

Re: [fpc-pascal] FORTRAN from FreePascal

2017-11-18 Thread Bo Berglund
On Sat, 18 Nov 2017 17:06:25 +, Mark Morgan Lloyd wrote: >I find myself wondering, in part due to conversations elsewhere: can the >Lazarus IDE do anything at all sane with a FORTRAN routine called from >Pascal? In the D7 application written in

Re: [fpc-pascal] Seek to EOF of file of byte

2017-11-18 Thread Graeme Geldenhuys
On 2017-11-18 15:44, Mark Morgan Lloyd wrote: How should one do this? https://www.freepascal.org/docs-html/current/rtl/system/seekeof.html implies that it's only for text files, Seek(f, FileSize(f)) seems excessive. Just curious, why would you consider the "old technology" instead of using

Re: [fpc-pascal] FORTRAN from FreePascal

2017-11-18 Thread Adriaan van Os
Mark Morgan Lloyd wrote: I find myself wondering, in part due to conversations elsewhere: can the Lazarus IDE do anything at all sane with a FORTRAN routine called from Pascal? It's not different from a call to C or any other compiled language. And with regard to debugging, I think it will

Re: [fpc-pascal] FORTRAN from FreePascal

2017-11-18 Thread Mark Morgan Lloyd
On 18/11/17 16:45, Adriaan van Os wrote: Bo Berglund wrote: I would very much want to convert them into DLL:s programmed in Pascal> instead so they can be maintained for new Windows versions (and use 64> bit for example). Well, you would have to do that by hand. And you need sufficient

Re: [fpc-pascal] FORTRAN from FreePascal

2017-11-18 Thread Adriaan van Os
Bo Berglund wrote: I would very much want to convert them into DLL:s programmed in Pascal instead so they can be maintained for new Windows versions (and use 64 bit for example). Well, you would have to do that by hand. And you need sufficient understanding of Fortran to know what you are

[fpc-pascal] Seek to EOF of file of byte

2017-11-18 Thread Mark Morgan Lloyd
How should one do this? https://www.freepascal.org/docs-html/current/rtl/system/seekeof.html implies that it's only for text files, Seek(f, FileSize(f)) seems excessive. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or