Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcdc!zac From: zac@hpfcdc.HP.COM (Steve Elbinger) Newsgroups: comp.sys.hp Subject: Re: Pascal and Lisp on HP 350's (Bobcats)? Message-ID: <5570123@hpfcdc.HP.COM> Date: 14 Feb 89 21:59:15 GMT References: <7134@spool.cs.wisc.edu> Organization: HP Ft. Collins, Co. Lines: 37 >> 1. HP Pascal (with HP-UX -- or whatever they call it). There are >> several problems here. a. File output doesn't work right (rewrite >> won't create a file unless it first already exists. if it does exist >> it doesn't erase the old contents). b. PDB (pascal debugger) does >> work. We have students using CDB instead. c. Bad runtime error >> messages. All errors at said to occur on line 0. >> We have had these bugs for at least a year. Anyone know of fixes? a. This is two problems. I. rewrite won't create a file unless it first already exists. This is expected behavior. If you close the file using close(f,'SAVE'); the file will remain. This is in the documentation. I know, I know; this is different from just about every other pascal in existence, but due to historical reasons, HP has been unwilling to change. II.if it does exist it doesn't erase the old contents. I've never seen this problem. Could you send me (please email or Postal - I usually don't read this notes group) some what strings and a code sample? what /usr/lib/pascomp what /lib/libpc.a uname -a b. I use pdb all the time on complex pascal code without problems. What version of pdb are you running? c. if you use the $DEBUG$ compiler option, line numbers will be correctly reported. Steve Elbinger hplabs!hpdcdb!zac Hewlett Packard Colorado Language Lab 3404 East Harmony Road (MS 96) Fort Collins, Colorado 80525