Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sdd.hp.com!hplabs!hpcc01!hpcuhb!hpcllla!hpclisp!defaria@hpclapd.HP.COM From: defaria@hpclapd.HP.COM (Andy DeFaria) Newsgroups: comp.lang.modula2 Subject: Re: JPI M2 2.00 - PROCEDURE FUNCTIONS & ERROR CHECKING Message-ID: <940002@hpclapd.HP.COM> Date: 7 Aug 90 15:54:12 GMT References: <2411.26B332AC@puddle.fidonet.org> Organization: Hewlett-Packard Calif. Language Lab Lines: 21 >/ hpclapd:comp.lang.modula2 / Ernie.Bokkelkamp@p22.f1.n491.z5.fidonet.org (Ernie Bokkelkamp) / 9:07 am Aug 5, 1990 / >On 30 Jul 1990 07:50, Peter M. Perchansky (1:273/101@Fidonet) wrote: > > PP> You are correct concerning a procedure function without a > PP>return statement. > PP> > PP> JPI M2 1.17 issued a compile-time error. JPI M2 2.00 issues > PP>a run-time error. > >I have been following the messages about this subject and until this morning I did not see the real impact of this "new feature". > >I have been trying to find an error for 5 days in a small demo program converted from C to Modula-2 which runs under MS-Windows. I have been having problems with the Windows interface so I have concentrated on that area. The fault reported in ERRORINF.$$$ is "No return value for procedure" and that is all I get, the addresses are no help due to the program running under windows. >Debugging with VID can't be done, the Windows debug version does not report anything, etc. > >I found the problem this morning, I forgot a RETURN! > Sorry, couldn't resist doing this one! One look at the posting above and you will note that you forgot a lot of RETURN's - CARRIAGE RETURNS! Please, many people only have dumb 80 column terminals, so hit carriage return when you get close to column 80!