🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.atari16
Article #70

Tdi Modula and Hard Disks

#70
From: Jwahar R. Bammi
Date: Mon, 03 Mar 1986 05:04
66 lines
2434 bytes
	Have you noticed that the Modula compiler 'modula.prg' will
only run if it is put in the root directory of a drive 'd:'. It
refuses to even startup if put in any sub-directory. The linker
and editor work OK in subdirectories though. I guess it is due to
the overlay directory, which also has to be in the root directory.
On my hard disk this does not fit the usual \bin \src etc scheme of
things. It is obvious that the designers never considered hierarchical
file systems. The file dialogue are driving me crazy.

	Has anyone else got the error '- compiler error 2', while
compiling a program. This is followed shortly with a dialog box saying
'Run Time error #9'. In the manual run time error #9 says 'Program
Halt'. Any hints??

	
More questions: any answers will be much appreciated.

Suppose we have
TYPE
	word = ARRAY [1..15] of CHAR;
VAR
	s1: word;
	s2: ARRAY[1..10] of word;
....
and we write
	IF s1 = s2[i] THEN
		     ^ operation with incompatible type (140)
	The Tdi compiler gives the above error, but the Powell m2
compiler does not object. Who is right? (reading Wirths or Thalmann's
book didn't give me any answer).

Also
TYPE
	word= ARRAY [1..20] OF CHAR;

..
PROCEDURE init(i:INTEGER; w:word);
VAR
    x:word;
...

x := w;
..

END init;

	init(1,'Something          '); (* 'twenty chars in string' *)
               ^ type incompatibility (128)
gives the above error.

if i change the type declaration to
TYPE
    word = ARRAY [0..19] OF CHAR;

The program compiles. Powells compiler of the Vax does not object to
either Type declaration. Again who is right?

	I better stop before i break my '?' key. Any answers will be
much appreciated.
-- 
					Jwahar R. Bammi
			       Usenet:  .....!decvax!cwruecmp!bammi
			        CSnet:  bammi@case
				 Arpa:  bammi%case@csnet-relay
			   CompuServe:  71515,155
Technical Details
Message-ID: <1425@cwruecmp.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!cwruecmp!bammi

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/17/84; site cwruecmp.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!cwruecmp!bammi
From: bammi@cwruecmp.UUCP (Jwahar R. Bammi)
Newsgroups: net.micro.atari16
Subject: Tdi Modula and Hard Disks
Message-ID: <1425@cwruecmp.UUCP>
Date: Mon, 3-Mar-86 00:04:29 EST
Article-I.D.: cwruecmp.1425
Posted: Mon Mar  3 00:04:29 1986
Date-Received: Tue, 4-Mar-86 01:46:15 EST
Organization: CWRU Dept. Computer Eng., Cleveland, OH
Lines: 66