Path: 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 In a message of 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