ada95 for C++ programmers
Mark Eichin, SIPBIAP 1997- Introduction
- Why I care
- Why you care
- Preparation
- Ada as a language
- syntax
- block structure is marked more clearly/verbosely
- ; is a terminator not a separator
- 69 reserved words
- raw syntax
- text
- 'x' is a character
- "xyz" is a string of characters
- -- "A""B" is ('A','"','B')
- -- must fit on a single line and not contain control characters
- numbers
- 35, 1_024, 1e6 (integer!), 3.14159_26536 (not 1. or .1)
- base notation: 2#111# 14#ABC# 2#11.1#e11 (base and exp always decimal)
- *literal numbers are never negative*
- identifiers
- lower case is same as upper except in character strings and literals
- iso-latin-1 so accents in identifiers are ok
- in comments, *anything* is ok
- identifiers must begin with letters
- max identifier len must be at least 200 characters, all significant
- comments
- comments begin with -- *only*, like //
comments
- type system
- types are more sophisticated
- arrays have ranges, slices, sliding
- strong typing
- strongly typed assignment var:=expression;
- user types
- Object Oriented stuff
- Where to go
- Resources
- compiler
- adahome
- my notes
- Other things