Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!crackers!m2c!umvlsi!dime!dime.cs.umass.edu!nayeri From: nayeri@cs.umass.edu (Farshad Nayeri) Newsgroups: comp.sys.mac.programmer Subject: Re: Pascal Message-ID: Date: 27 Sep 90 02:43:27 GMT References: <1990Sep26.234745.18987@midway.uchicago.edu> Sender: news@dime.cs.umass.edu Reply-To: nayeri@cs.umass.edu Organization: Dept of Comp and Info Sci, Univ of Mass (Amherst) Lines: 32 In-reply-to: francis@arthur.uchicago.edu's message of 26 Sep 90 23:47:45 GMT In article <1990Sep26.234745.18987@midway.uchicago.edu> francis@arthur.uchicago.edu (Francis Stracke) writes: In article ph1c+@andrew.cmu.edu (Peter Nikitas Handrinos) writes: >Does anyone know how one can write some Pascal on the Mac, say in Turbo, >and then save the file, and take it to an IBM and compile it in Turbo, >there? > >When I saved the file last time, it seemed to insert a bunch of >characters in the IBM file, and lost all the formatting... I don't know what Turbo does with formatting; what I would do, if I were you, would be to Copy your text, then go to a word processor & Paste in, then save it as straight ASCII. I'm not sure what (if anything) will be lost, but you shouldn't get any weird chars inserted, anyway. I think the problem is that PC Turbo Pascal does not use hard-tabs in its indenting (I think it uses spaces, but it looks like you are tabbing.). This would be ok, except if you are reading code from a different editor that uses hard-tabs (e.g., Turbo Pascal on the Mac, I think). Formatting is lost because you have ^I's instead of jumps to the correct tab positions. A simple substitution from ^Is to say eight tab positions will help, only if you don't have spaces preceding tabs (Sorry, I don't remember the key sequence in PC-TP... ). And, these are all speculations, I haven't used turbo pascal in about 3 years, and don't have one in reach right now. --farshad -- Farshad Nayeri Object Oriented Systems Group nayeri@cs.umass.edu Dept. of Computer and Information Science (413)545-0256 University of Massachusetts at Amherst