Subject: | |
From: | |
Reply To: | Dr. Ferenc Nagy |
Date: | Tue, 14 Jan 1997 16:02:52 +0100 |
Content-Type: | TEXT/PLAIN |
Parts/Attachments: |
|
|
>
> I have two rules about writing Pascal programs:
>
> 1) don't use Pascal I/O.
>
> and, rule #2, which is very important if you broke rule #1:
>
> 2) *NEVER* use Pascal I/O!
>
> Pascal I/O is terribly slow, and has a variety of problems ... I've seen
> orders (yes, 100 times!) of magnitude improvment in some programs when
> we dumped the Pascal I/O and replaced it with intrinsic I/O.
>
Hi Stan:
You are lucky, that you can use low-level I/O instead of Pascal.
Might be that the HP programmers are lucky, having intrinsics accessible
from any language.
I think, however, that low-level I/O makes a program machine-dependent and
unportable. I prefer using PASCAL I/O to retain the programs more
readable.
I had problem with Pascal I/O only once, when I tried to read variable
records of a spoolfile, and garbage remained at the end of the records
from the previous one, if a short record followed a long one.
Cheers
Frank
|\ /~ ~~|~~~ Family : NAGY; first name : FERENC; title : Ph. D.
| \ | -+- Institute of Isotopes of the Hungarian Academy of Sciences
| \| | 1121 BUDAPEST Konkoly-Thege M. ut 29, HUNGARY (1525 Bp. POB 77)
`-' ' `-' E-mail : [log in to unmask]
Fax: (36)-1-395-9002, work phone: (36)-1-395-9123, home phone: (36)-1-277-4229.
^NEW! ^NEW!
Home address: H-1214 BUDAPEST Raketa u. 29. I. 3.
There are 3 kinds of programming errors: syntactical, semantical and mystical.
The programmers have to suck up the users just as much as absolutely necessary.
|
|
|