comp.lang.ada
 help / color / mirror / Atom feed
* Ada 95 -- Ada 2005 -- Ada 2012
@ 2014-08-27 18:46 gdotone
  2014-08-27 19:01 ` Dmitry A. Kazakov
  2014-08-27 20:05 ` Jeffrey Carter
  0 siblings, 2 replies; 4+ messages in thread
From: gdotone @ 2014-08-27 18:46 UTC (permalink / raw)


newbie:

i'm learning Ada now using an Ada 95 book…

question:

is the object oriented features so different in Ada 2012 that i should not use a book teaching Ada 95, the book is the second edition by Koffman and Feldman "Ada 95: Problem Solving and Program Design"

I was reading the Ada Style Guide and got to the part about Object Oriented features and realized how dated this document might be.

From Ada Style Guide:

"Chapter 9 defines a set of guidelines in common objected-oriented terms that exploit some of the features of Ada 95 that are not in Ada 83. The guidelines discuss the use of the new Ada
features of type extension (tagged types), abstract tagged types, and abstract subprograms to implement single inheritance, multiple inheritance, and polymorphism."


https://upload.wikimedia.org/wikipedia/commons/7/7c/Ada_Style_Guide.pdf

Thanks everyone,

g.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Ada 95 -- Ada 2005 -- Ada 2012
  2014-08-27 18:46 Ada 95 -- Ada 2005 -- Ada 2012 gdotone
@ 2014-08-27 19:01 ` Dmitry A. Kazakov
  2014-08-27 20:05 ` Jeffrey Carter
  1 sibling, 0 replies; 4+ messages in thread
From: Dmitry A. Kazakov @ 2014-08-27 19:01 UTC (permalink / raw)


On Wed, 27 Aug 2014 11:46:31 -0700 (PDT), gdotone@gmail.com wrote:

> is the object oriented features so different in Ada 2012 that i should not
> use a book teaching Ada 95,

You can use the text book. The only significant additions regarding OO made
in Ada 2005 are

1. multiple inheritance restricted to Java-like interfaces;
2. postfix notation support;
3. the keyword "[not] overriding" (never forget to use it)

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Ada 95 -- Ada 2005 -- Ada 2012
  2014-08-27 18:46 Ada 95 -- Ada 2005 -- Ada 2012 gdotone
  2014-08-27 19:01 ` Dmitry A. Kazakov
@ 2014-08-27 20:05 ` Jeffrey Carter
  2014-08-27 21:27   ` gdotone
  1 sibling, 1 reply; 4+ messages in thread
From: Jeffrey Carter @ 2014-08-27 20:05 UTC (permalink / raw)


On 08/27/2014 11:46 AM, gdotone@gmail.com wrote:
> 
> is the object oriented features so different in Ada 2012 that i should not
> use a book teaching Ada 95, the book is the second edition by Koffman and
> Feldman "Ada 95: Problem Solving and Program Design"

Ada 95 is a very good language. IMO, it is better than any language that doesn't
have "Ada" in its name. Even Ada 83 is better than 99% of the languages in use.
The changes in later versions of the language are not difficult to pick up once
you've learned Ada 95. The major changes are

1. The data-structure library in Ada.Containers.*
2. Aspects, especially for specifying pre- and postconditions
3. Syntactic sugar to allow Object.Operation notation for tagged types
4. User-defined indexing
5. Additional for-loop forms

There is also interfaces, but "IMHO, Interfaces are worthless."--Randy Brukardt,
compiler writer, ARG member, and ARM editor.

-- 
Jeff Carter
"Since I strongly believe that overpopulation is by
far the greatest problem in the world, this [Soylent
Green] would be my only message movie."
Charleton Heston
123


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Ada 95 -- Ada 2005 -- Ada 2012
  2014-08-27 20:05 ` Jeffrey Carter
@ 2014-08-27 21:27   ` gdotone
  0 siblings, 0 replies; 4+ messages in thread
From: gdotone @ 2014-08-27 21:27 UTC (permalink / raw)


ok, i will press on.

thanks Dmitry and Jeff,

g.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-08-27 21:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-27 18:46 Ada 95 -- Ada 2005 -- Ada 2012 gdotone
2014-08-27 19:01 ` Dmitry A. Kazakov
2014-08-27 20:05 ` Jeffrey Carter
2014-08-27 21:27   ` gdotone

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