Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site dicomed.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!mgnetp!dicomed!papke From: papke@dicomed.UUCP (Kurt Papke) Newsgroups: net.lang.mod2 Subject: Record assignments in Modula-2 Message-ID: <429@dicomed.UUCP> Date: Mon, 18-Mar-85 22:10:57 EST Article-I.D.: dicomed.429 Posted: Mon Mar 18 22:10:57 1985 Date-Received: Wed, 20-Mar-85 05:24:11 EST Reply-To: papke@dicomed.UUCP (Kurt Papke) Organization: DICOMED Corp., Minneapolis Lines: 17 Question: (possibly very naive!!) does Modula-2 allow assignments of records ? Wirth's book explicity allows assignment of array variables (see middle of pg 34), but is unclear (to me) whether assignments of record variables are legal. Example: TYPE rec = RECORD x1, x2 : integer END; VAR rec1, rec2 : rec; BEGIN rec1 := rec2 END. Does anyone out there know what it should be ?? Does anyone have any experience as to which compilers allow, disallow, or croak on such an expression ?? If the response warrants, I will post the record (ugh!) to the net.