Showing posts with label ada. Show all posts
Showing posts with label ada. Show all posts

Tuesday, July 28, 2009

Learning Ada

I'm getting the opportunity to do some work in ada so I'll note some things I've learned as I go along, they may be common knowledge to some people, but they're new to me as I am learning.

Yesterday I learned how to declare a record and how to assign values to the items in the record, there are 2 ways (that I currently know of).

Pertaining to a record that contains the items animal and fish:

1. Assign individually:
     Albuquerque.animal := ("cow");
     Albuquerque.fish := ("trout");

2. Assign them as a group:
      Albuquerque := (animal => "cow", fish => "trout");