🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #1009

Re: JPI M2 2.00 - PROCEDURE FUNCTIONS & ERROR CHECKING

#1009
From: George Emery
Date: Thu, 26 Jul 1990 01:21
25 lines
1395 bytes
 >     PROCEDURE function (whatever: WhateverType): ReturnType;
 >     BEGIN
 >     END function;

 >       1)   The name of your Modula-2 compiler plus its version.

TDI Modula-2 for the Atari ST, Developer's Version 3.00b

 >       2)   Do you receive a compile-time or run-time error for
 >            the above procedure?

Run-time error: No return from a function

 >       3)   What is your preference and why?

I'd prefer a compile-time error because it's nice to know about a problem
before it gets to run-time and requires extra debugging effort.  Pat Terry
is correct, however, and run-time checking shouldn't be ignored in this
example.


--  
uucp: uunet!m2xenix!puddle!369.42!George.Emery
Internet: George.Emery@p42.f369.n105.z1.fidonet.org
Technical Details
Message-ID: <2383.26B28A20@puddle.fidonet.org>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!sdd.hp.com!uakari.primate.wisc.edu!dali.cs.montana.edu!milton!unicorn!ogicse!zephyr.ens.tek.com!tektronix!nosun!qiclab!m2xenix!puddle!p42.f369.n105.z1.fidonet.org!George.Emery

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!sdd.hp.com!uakari.primate.wisc.edu!dali.cs.montana.edu!milton!unicorn!ogicse!zephyr.ens.tek.com!tektronix!nosun!qiclab!m2xenix!puddle!p42.f369.n105.z1.fidonet.org!George.Emery
From: George.Emery@p42.f369.n105.z1.fidonet.org (George Emery)
Newsgroups: comp.lang.modula2
Subject: Re: JPI M2 2.00 - PROCEDURE FUNCTIONS & ERROR CHECKING
Message-ID: <2383.26B28A20@puddle.fidonet.org>
Date: 26 Jul 90 01:21:12 GMT
Sender: ufgate@puddle.fidonet.org (newsout1.26)
Organization: FidoNet node 1:105/369.42 - TECHbooks One, Beaverton OR
Lines: 25