Path: utzoo!attcan!uunet!snorkelwacker!bu.edu!m2c!wpi.WPI.EDU!kamal From: kamal@wpi.WPI.EDU (Kamal Z Zamli) Newsgroups: comp.lang.pascal Subject: Re: pascal-2 bugs ? Message-ID: <1990Oct1.193803.5225@wpi.WPI.EDU> Date: 1 Oct 90 19:38:03 GMT References: <65252@bu.edu.bu.edu> Distribution: comp.lang.pascal Organization: Worcester Polytechnic Institute Lines: 29 In article <65252@bu.edu.bu.edu> cao@bucsf.UUCP (chan cao) writes: >hi, >I'm curious why the following program always give me error at the end. >Even if i have a period after end, that doesn't solve the problem. >i used pascal compiler called pascal-2 in unix. >thanks for any suggestions. > >program test (input,output); >var > i,j,k:integer; >begin > for i:=1 to 200 do > writeln ('something'); >end.bucsf% >bucsf% pc pas.p -main -berkeley >Pascal-2 4.00 (r0) Encore UMAX4.2 30-Sep-90 4:44 AM Page 1-1 >pas.p > > 7 end > ^9 >*** 9: Use '.' after main program body > > > *** There was 1 line with errors detected *** >?Errors detected: 1 Did you put a carriage return after the "end ." statement ? I dont't know why but i think you do need it ...