From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ecc058d81d1613b5,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.224.180.141 with SMTP id bu13mr16288152qab.2.1356636679496; Thu, 27 Dec 2012 11:31:19 -0800 (PST) Received: by 10.49.58.238 with SMTP id u14mr4783533qeq.13.1356636679471; Thu, 27 Dec 2012 11:31:19 -0800 (PST) Path: k2ni3151qap.0!nntp.google.com!ee4no2598967qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 27 Dec 2012 11:31:19 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=77.11.81.165; posting-account=R80nsQoAAADNWKZhSnWyt-Rp7ZyxrQGD NNTP-Posting-Host: 77.11.81.165 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Help on record to a Newbie From: Cedric Injection-Date: Thu, 27 Dec 2012 19:31:19 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-12-27T11:31:19-08:00 List-Id: Hi All, I started learning Ada (it's the third time I try!). I defined and declared the following: type t_terminal_type is (black_n_white, black_n_yellow, black_n_green, color); type t_color_type is (red, green, blue, yellow, black, white, grey); type t_configure_type is record terminal : t_terminal_type; foreground, background : t_color_type; end record; t_config : t_configure_type; t_config.terminal := black_n_white; t_config.background := black; t_config.foreground := white; The compiler (GNAT 2012) comes back with "declaration expected" for the last three lines. As far as I understood the language I have declared the variable "t_config". This variable has the components terminal, background and foreground of their respective types which can be accessed using dot-notation. What did I miss here? Kind regards Cedric