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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a85144dd5d8270de X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-05 14:44:11 PST Path: archiver1.google.com!newsfeed.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Syntax Question Date: 5 Jul 2001 14:44:11 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0107051344.1b602151@posting.google.com> References: <3B44AAE3.DB048BC8@ll.mit.edu> NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 994369451 24007 127.0.0.1 (5 Jul 2001 21:44:11 GMT) X-Complaints-To: groups-support@google.com NNTP-Posting-Date: 5 Jul 2001 21:44:11 GMT Xref: archiver1.google.com comp.lang.ada:9501 Date: 2001-07-05T21:44:11+00:00 List-Id: Robby Simpson wrote in message news:<3B44AAE3.DB048BC8@ll.mit.edu>... > I have some ADA code I am porting to C (I am new to ADA). What would > the following code mean? > > some_var : some_type; > > some_var := (some_other_type with attr_x => value1, attr_y => value2); Translating complex Ada code to C is a difficult task under the best of conditions, but trying to do it if you do not know Ada is likely to be close to impossible. I recommend a thorough study of Ada (work through one of the online tutorials, and in particular read a good Ada text book describing the use of tagged types).