🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #1041

Re: JPI M2 2.00 - PROCEDURE FUNCTIONS & ERROR CHECKING

#1041
From: Ernie Bokkelkamp
Date: Sun, 05 Aug 1990 16:07
23 lines
1697 bytes
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!

Cheers
Ernie



--  
uucp: uunet!m2xenix!puddle!5!491!1.22!Ernie.Bokkelkamp
Internet: Ernie.Bokkelkamp@p22.f1.n491.z5.fidonet.org
Technical Details
Message-ID: <77.26BD1651@puddle.fidonet.org>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!dali.cs.montana.edu!ogicse!zephyr.ens.tek.com!tektronix!nosun!qiclab!m2xenix!puddle!p22.f1.n491.z5.fidonet.org!Ernie.Bokkelkamp

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!dali.cs.montana.edu!ogicse!zephyr.ens.tek.com!tektronix!nosun!qiclab!m2xenix!puddle!p22.f1.n491.z5.fidonet.org!Ernie.Bokkelkamp
From: Ernie.Bokkelkamp@p22.f1.n491.z5.fidonet.org (Ernie Bokkelkamp)
Newsgroups: comp.lang.modula2
Subject: Re: JPI M2 2.00 - PROCEDURE FUNCTIONS & ERROR CHECKING
Message-ID: <77.26BD1651@puddle.fidonet.org>
Date: 5 Aug 90 16:07:00 GMT
Sender: ufgate@puddle.fidonet.org (newsout1.26)
Organization: FidoNet node 5:491/1.22 - Golden City Opus, Johannesburg RSA
Lines: 23