Article View: comp.lang.modula2
Article #957JPI M2 2.00 - PROCEDURE FUNCTIONS & ERROR CHECKING
From: Peter.M..Perchansky Peter M. Per...
Date: Fri, 20 Jul 1990 16:26
Date: Fri, 20 Jul 1990 16:26
26 lines
1638 bytes
1638 bytes
Hello:
I would appreciate a response from each of you (whether you use JPI M2 2.00 or not) concerning the following question/dilema:
PROCEDURE function (whatever: WhateverType): ReturnType;
BEGIN
END function;
If you compile the above example (filling in whatever, WhateverType, and ReturnType with names/types of your chosing), you should get a compile-time error.
JPI M2 1.17 gave you a compile time error if you compiled a module containing a procedure which was defined as having a return type/value, but did not issue a return.
JPI M2 2.00 does not give you a compile-time error; it will give you a run-time error when you go to executre the said procedure.
I would like to know the following from all of you:
1) The name of your Modula-2 compiler plus its version.
2) Do you receive a compile-time or run-time error for
the above procedure?
3) What is your preference and why?
--
uucp: uunet!m2xenix!puddle!273!101!Peter.M..Perchansky
Internet: Peter.M..Perchansky@f101.n273.z1.fidonet.org
Technical Details
Message-ID:
<1960.26A95065@puddle.fidonet.org>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!dali.cs.montana.edu!ogicse!cvedc!nosun!qiclab!m2xenix!puddle!f101.n273.z1.fidonet.org!Peter.M..PerchanskyShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!dali.cs.montana.edu!ogicse!cvedc!nosun!qiclab!m2xenix!puddle!f101.n273.z1.fidonet.org!Peter.M..Perchansky From: Peter.M..Perchansky@f101.n273.z1.fidonet.org (Peter M. Perchansky) Newsgroups: comp.lang.modula2 Subject: JPI M2 2.00 - PROCEDURE FUNCTIONS & ERROR CHECKING Message-ID: <1960.26A95065@puddle.fidonet.org> Date: 20 Jul 90 16:26:21 GMT Sender: ufgate@puddle.fidonet.org (newsout1.26) Organization: FidoNet node 1:273/101 - Schizophrenia, Fleetwood PA Lines: 26