Article View: comp.lang.modula2
Article #3525Problems with Logitech Compiler
From: kumard
Date: Fri, 21 Nov 1986 21:23
Date: Fri, 21 Nov 1986 21:23
53 lines
2092 bytes
2092 bytes
I have been using the DECWRL compiler for quite some time now.
Recently we also started using the Logitech Compiler on the VAX/VMS.
There are some shortcomings of this compiler that I have come across.
First of all, it doesn't let you define function procedures that
return user-defined structured types (static). DECWRL does.
It lets you define function-procedures that will return a pointer
type; but you can't use that function call in a boolean
expression, e.g.
TYPE List = POINTER TO Node;
Node = RECORD
info : INTEGER;
next : List;
END;
VAR x, y : List;
PROCEDURE returnptr (x: List) : List;
BEGIN
RETURN x;
END returnptr;
BEGIN (* main...*)
.....
IF returnptr(y) # NIL THEN....
This gives a syntax error (type incompatibility in expression)
in the Logitech version. DECWRL has no complaints about it
and runs fine.
Similar code is present in the Data Structures in Modula-2 text
by Weiner and Sincovec. They claim that they have tested their
programs using the Logitech compiler.
IF we were to believe that the code they wrote
in the text is actually tested,
THEN
there is inconsistency in the Logitech distributions
ELSE
Sincovec & Weiner are making false claims
END;
ASSERTION : Would anyone like to make any assertions here? :-)
Deepak.
--
CSNET : kumard@buffalo |
ARPA : kumard%buffalo@csnet-relay |
BITNET : kumard@sunybcs |
Technical Details
Message-ID:
<1484@sunybcs.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!sunybcs!kumardShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!sunybcs!kumard From: kumard@sunybcs.UUCP Newsgroups: comp.lang.modula2 Subject: Problems with Logitech Compiler Message-ID: <1484@sunybcs.UUCP> Date: Fri, 21-Nov-86 16:23:19 EST Article-I.D.: sunybcs.1484 Posted: Fri Nov 21 16:23:19 1986 Date-Received: Sun, 23-Nov-86 03:28:53 EST Organization: SUNY/Buffalo Computer Science Lines: 53 Keywords: function procedures returning structured types etc