comp.lang.ada
 help / color / mirror / Atom feed
From: Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject: Re: Ada versus Pascal
Date: Fri, 22 Oct 2021 13:05:01 -0400	[thread overview]
Message-ID: <6pq5ngtioomfo2depk1ickvbdmleuqq16i@4ax.com> (raw)
In-Reply-To: sktb3o$dn1$1@gioia.aioe.org

On Thu, 21 Oct 2021 22:29:15 -0500, 711 Spooky Mart <711@spooky.mart>
declaimed the following:

>The little snippets of Ada code I've seen look _alot_ like Pascal.
>
	No surprise. The teams that took part in the DoD competition to design
a language to replace the mish-mash of languages being used in the 70s
tended to choose Pascal as the starting point (Modula-2 hadn't escaped
ETH-Zurich yet <G>).

	The main difference is that Ada incorporated block closing syntax at
the base, finding Pascal (and C) [begin/end, {/} respectively] usage
error-prone (dangling else, etc.) along with using ; as a terminator
instead of separator. Oh, and using (/) for both function arguments and
array indexing (back then, most US keypunches didn't support [/] or {/} ).

	Declarations do not have a defined sequence (type, constant, variable).

	Also, Pascal of the era typically did not support separate compilation
and/or include files -- programs were all single monolithic files, any
change required recompiling the entire program.

	Pascal also had a relatively limited I/O system -- with the bad quirk
that it did "pre-reads" of files. Made interactive/console programs
difficult (or required special handling by the run-time startup) --
starting a program would result in stdin reading at the least one
character, if not one line, into the file buffer variable... But the
program may not want the data until after lots of initialization and
prompts.

>What degree of learning curve is there to learn Ada, coming from a
>Pascal background? What kind of rough timeframes to get comfortable with
>programming without always looking to the manuals?
>
	If all one is writing is "Pascal" type applications, without using
complex data types (ie; defining specific types for each "concept") -- it
shouldn't take too long.

	Tasking, rendezvous, protected objects (not to be confused with private
objects), and generics, may take longer to get comfortable with.

	The appendices of the LRM will tend to get lots of usage; there are
many subtleties to the standard libraries.


-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
	wlfraed@ix.netcom.com    http://wlfraed.microdiversity.freeddns.org/

  parent reply	other threads:[~2021-10-22 17:05 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-22  3:29 Ada versus Pascal 711 Spooky Mart
2021-10-22  6:18 ` ldries46
2021-10-22  9:59   ` 711 Spooky Mart
2021-10-22 15:12     ` Niklas Holsti
2021-10-22 15:47       ` Dmitry A. Kazakov
2021-10-23  7:13       ` ldries46
2021-10-23 14:08       ` Simon Wright
2021-10-22  6:40 ` Paul Rubin
2021-10-22  8:57 ` Niklas Holsti
2021-10-22 11:49 ` Jeffrey R.Carter
2021-10-22 17:05 ` Dennis Lee Bieber [this message]
2021-10-23  0:29   ` Paul Rubin
2021-10-23  1:17     ` Randy Brukardt
2021-10-23 17:24     ` Dennis Lee Bieber
2021-10-24  7:04       ` J-P. Rosen
2021-10-22 20:00 ` Gautier write-only address
2021-10-24  4:33 ` Jerry
2021-10-24  6:32   ` ldries46
2021-10-24 16:51   ` Gautier write-only address
2021-10-24 23:24     ` 711 Spooky Mart
2021-10-25  8:23       ` Niklas Holsti
2021-10-25  8:40         ` Luke A. Guest
2021-10-25 13:34           ` Luke A. Guest
replies disabled

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