m12 - Lecture C12 Response to 'Muddiest Part of the Lecture...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Lecture C12 Response to 'Muddiest Part of the Lecture Cards' (6 respondents) 1) From the Dates example, it seems that the input can either be uppercase or lower case, but I did not see any character conversion (to all uppercase or to all lower caser). Does this mean that upper case and lower case letter are worth the same in Ada ? type Days is (Mon, Tue, Wed, Thu, Fri, Sat, Sun); pac kage Day_Io is new Enumeration_Io (Days); use Day_Io; The program (example 2), is working with days as enumerations types not character types. The key thing to understand here is the get function implemented using Day_IO is case insensitive. See A.10.10 in the Language Reference Manual for more details. If the input was character input, then there is a significant difference between upper_case and lower_case characters. 2) What is the purpose of a raise statement? I still don’t understand how this is useful. Would you ever use it outside of an exception handler ? The raise statement is used to identify the occurrence of an exception. If there are user defined exceptions in the program, then it is left to the programmer to identify it and
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

m12 - Lecture C12 Response to 'Muddiest Part of the Lecture...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online