Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!icdoc!syma!peterhi From: peterhi@syma.sussex.ac.uk (Peter Hickman) Newsgroups: comp.lang.modula2 Subject: Problem Message-ID: <4376@syma.sussex.ac.uk> Date: 30 Jan 91 16:57:57 GMT Organization: University of Sussex Lines: 148 I've got this problem with my Metrowerks Start Pak for the Macintosh, other than the one I mentioned before. The example program below works fine, not the best code in the world but then I am just a beginner. MODULE test; FROM Storage IMPORT ALLOCATE, DEALLOCATE; FROM InOut IMPORT Write, WriteLn, WriteCard, WriteString, HoldScreen; CONST Start = 1; Finish = 10; TYPE String = ARRAY [0..1] OF CHAR; PtEl = POINTER TO Element; Element = RECORD Name : String; Rank : CARDINAL; Next : PtEl; END; VAR First : PtEl; i : CARDINAL; PROCEDURE Insert( Rank : CARDINAL ); VAR Ptr, Previous, q : PtEl; BEGIN ALLOCATE( q, SIZE( PtEl ) ); q^.Name[0] := 'f'; q^.Name[1] := 'F'; q^.Rank := Rank; q^.Next := NIL; Ptr := First; WHILE (Ptr#NIL) AND (Ptr^.Rank