Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!cam-cl!news From: pr@cl.cam.ac.uk (Peter Robinson) Newsgroups: comp.lang.modula3 Subject: Problem with recursive objects Message-ID: <1991Jan23.103340.9707@cl.cam.ac.uk> Date: 23 Jan 91 10:33:40 GMT Sender: news@cl.cam.ac.uk (The news facility) Organization: U of Cambridge Computer Lab, UK Lines: 17 The following program: | MODULE Main; | | TYPE r = r OBJECT METHODS m () END; | | BEGIN | END Main. causes the DEC SRC Modula-3 compiler (version 1.5, MIPS/Ultrix system) to loop indefinitely. If the type declaration omits the method: | TYPE r = r OBJECT METHODS END; then a proper error message about a recursive type declaration is given. - Peter Robinson.