Questions tagged [ada]

Questions about Ada, a programming language that made it's first appearance around 1980.

8 questions
18
votes
5 answers

is Ada really gone?

Do people still use Ada -- (it was mostly used in the Defense Department) Are all applications written in Ada "Legacy"? Does Ada knowledge still sell
treecoder
  • 9,475
  • 10
  • 47
  • 84
9
votes
2 answers

Why is overflow silently allowed in Ada?

Silent failure for such trivial code. How can they claim high integrity? with ada.text_io; use ada.text_io; procedure overflow is procedure p (i: positive) is x: integer := integer'last; begin x := (x+i)/2; put_line…
cufizut
  • 93
  • 1
  • 5
7
votes
2 answers

Rendezvous in Ada

In a test I was asked: What elements present in the general form of a rendezvous are not present in Ada language? I was a bit stumbled as I thought Ada fully supported rendezvous. Now it seems it doesn't. Can anyone tell me what are those…
Mosty Mostacho
  • 279
  • 2
  • 8
4
votes
1 answer

What are some good books to use to learn ADA?

I was recently encouraged by a potential employer to go out and buy a book and begin learning ADA. I generally find that starting out with a good book, then supplementing that learning with continued research on-line with reference as needed to the…
Kenneth
  • 2,703
  • 2
  • 21
  • 30
4
votes
2 answers

Custom types vs Conditions and Exceptions for parameter checking in Ada

The question: Is it considered better practice to use derived types/subtypes or to use conditions and exception-handling to restrict the acceptable inputs for a subprogram in Ada? I understand that in Ada2012 you can use contracts, but what about…
silentTeee
  • 51
  • 3
2
votes
2 answers

How to create a 2D array at runtime in Ada?

In Ada programming, What is a best practice way to create a 2D array of a size that is specified by the user? I'm teaching myself Ada for work (after many years of C programming), and I'm having difficulty understanding how to create an array of a…
Wossname
  • 139
  • 1
  • 6
2
votes
2 answers

Source file shouldn't be more than 100 SLOC

I just started working on a baseline that is rooted in Ada. Many of the older Ada programmers insist that the source files shouldn't be more than 100 SLOC. I researched this online and I have not found any source to this statement. Is this a…
Engineer2021
  • 3,238
  • 5
  • 28
  • 32
1
vote
1 answer

Annexes in Ada95

I want to know the differences between normative and informative annexes in Ada 95. I am just able to find a list of each of them but not the differences. What are the differences?