🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.modula2
1 messages
1 total messages Started by kumard Fri, 21 Nov 1986 21:23
Problems with Logitech Compiler
#3525
Author: kumard
Date: Fri, 21 Nov 1986 21:23
53 lines
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                                          |
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads