From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,MSGID_SHORT autolearn=no autolearn_force=no version=3.4.5-pre1 Date: 3 May 92 02:27:23 GMT From: sunset.sda.com!blakemor@uunet.uu.net (Alex Blakemore) Subject: Re: TEST: Which lang. needs least lines? Message-ID: <141@sunset.sunset.sda.com.COM> List-Id: In article <1314@adpplz.UUCP> martin@adpgate.UUCP (Martin Golding) writes: > For COBOL, the Interesting Program would copy between two files containing > very large records with lots and lots of fields of the same name but > different organization. COBOL has a single command to move the equally > named fields from one record to another. The other languages either don't > encompass the concept of records, or would require explicit instructions to > reorganize the fields. (Even APL :-Pthpthpth). Not too many people seem to take advantage of it, but Ada has a similar capability. Derived types can have different rep clauses than their base types - or can be packed for example. if so, then the type conversion actually converts the data from one representation to the other, rather than just appeasing the compiler's type checking. -- Alex Blakemore alex@cs.umd.edu blakemor@marlstone.com NeXT mail accepted