comp.lang.ada
 help / color / mirror / Atom feed
From: sunset.sda.com!blakemor@uunet.uu.net  (Alex Blakemore)
Subject: Re: TEST: Which lang. needs least lines?
Date: 3 May 92 02:27:23 GMT	[thread overview]
Message-ID: <141@sunset.sunset.sda.com.COM> (raw)

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

                 reply	other threads:[~1992-05-03  2:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox