comp.lang.ada
 help / color / mirror / Atom feed
* Re: TEST: Which lang. needs least lines?
@ 1992-05-03  2:27 Alex Blakemore
  0 siblings, 0 replies; only message in thread
From: Alex Blakemore @ 1992-05-03  2:27 UTC (permalink / 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1992-05-03  2:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1992-05-03  2:27 TEST: Which lang. needs least lines? Alex Blakemore

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