Re: How difficult is ada to learn?



Gene wrote:

Most people who start with Borland Pascal miss the built-in set and string data types. Ada gets the same effects with packages, but the syntax is far less elegant and readable.

Thinking about it some more, I forgot that Ada does built-in support for sets a la Pascal, in the form of arrays whose component subtype is Boolean. There are predefined operations for and'ing, or'ing, etc.


Of course, sets of this type have the same constraints as Pascal, meaning that the element type must be discrete and constrained, e.g. subtypes of Character or Integer, etc.

The languages aren't much different here (as you might expect, given Ada's pedigree).

.



Relevant Pages

  • Re: Implicit Declaration
    ... constraint violation or a syntax violation ... The standard certainly treats them differently, putting syntax rules ... places constraints in sections named "Constraints". ...
    (comp.lang.c)
  • Re: int pointing to char
    ... I honestly believe that applying semantics to code that has ... >> constraint violations is enough to determine if the code is erroneous ... >the meaning is "code with this syntax, subject to these constraints, ... If the syntax does not match then the ...
    (comp.lang.c)
  • Re: How do you print out details of the file structure of a database?
    ... "One new feature added to the Jet CREATE TABLE syntax is Check ... Constraints. ... This new SQL grammar allows the user to specify business ...
    (microsoft.public.access.gettingstarted)
  • Re: Newbie creating table question
    ... check the CREATE TABLE syntax in Books Online. ... "Paul in Harrow" wrote in message ... > (Not all the fields with Constraints will be entered at any one time thats ...
    (microsoft.public.sqlserver.programming)
  • Re: Check for integer solution vector
    ... other elegant ways. ... solving this problem? ... Rob Pratt ...
    (sci.math)