🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #1002

JPI M2 2.00 - PROCEDURE FUNCTIONS & ERROR CHECKING

#1002
From: Martin Baur
Date: Wed, 25 Jul 1990 19:58
33 lines
1652 bytes
In a message of <Jul 20 09:26> Peter M. Perchansky (1:273/101@fidonet) writes:

  PMP: "    PROCEDURE function (whatever: WhateverType): ReturnType;
  PMP: "    BEGIN
  PMP: "    END function;

Hi Peter

I guess you're after the FUNTION without RETURN behavior, aren't you? I 
currently use Logitech 3.40. This compiler does not issue any error message 
during compiler run. I don't even get a runtime error. It simply hangs the 
system sometimes.

In one of my commerically sold libraries I forgot to place a return statement, 
and it neverthless works until now. Strange, strange ...

I would like the compiler to report the missing RETURN statement. Although the 
compiler normally doesn't know if the ERTURN is ever called. My wish would be: 
The compiler should analyze the program flow to recognize a program branch 
that doens't have a RETURN statement. This case should cause an error message.



     !Beware of Martin Baur!
(His point of view: 2:302/801.70)
 



--  
uucp: uunet!m2xenix!puddle!2!302!801.70!Martin.Baur
Internet: Martin.Baur@p70.f801.n302.z2.fidonet.org
Technical Details
Message-ID: <2341.26B0568E@puddle.fidonet.org>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!zephyr.ens.tek.com!tektronix!nosun!qiclab!m2xenix!puddle!p70.f801.n302.z2.fidonet.org!Martin.Baur

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!zephyr.ens.tek.com!tektronix!nosun!qiclab!m2xenix!puddle!p70.f801.n302.z2.fidonet.org!Martin.Baur
From: Martin.Baur@p70.f801.n302.z2.fidonet.org (Martin Baur)
Newsgroups: comp.lang.modula2
Subject: JPI M2 2.00 - PROCEDURE FUNCTIONS & ERROR CHECKING
Message-ID: <2341.26B0568E@puddle.fidonet.org>
Date: 25 Jul 90 19:58:28 GMT
Sender: ufgate@puddle.fidonet.org (newsout1.26)
Organization: FidoNet node 2:302/801.70 - Gepard's Oracle Zue, Zuerich
Lines: 33