Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site rna.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!akgua!mcnc!philabs!cmcl2!rna!kc From: kc@rna.UUCP (Kaare Christian) Newsgroups: net.lang.mod2 Subject: Re: Record assignments in Modula-2 Message-ID: <387@rna.UUCP> Date: Fri, 22-Mar-85 13:57:33 EST Article-I.D.: rna.387 Posted: Fri Mar 22 13:57:33 1985 Date-Received: Tue, 26-Mar-85 05:11:03 EST References: <429@dicomed.UUCP> Organization: Rockefeller Neurobiology Lines: 14 > Question: (possibly very naive!!) does Modula-2 allow assignments of records ? Yes. I couldn't find a direct citation, but I've used the feature on several compilers. The answer can probably be inferred from section 9.1 of the Report. It says "Operand types are said to be assignment compatible, if either they are compatible or ... " Since any type is compatible with itself (another claim without a solid citation that I can find) it seems all types can be assigned values. I've made a table of all of the Modula-2 data types and their allowable operations. Assignment is the only universal operation. Kaare Christian cmcl2!rna!kc