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-09 05:39:25 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!nycmny1-snh1.gtei.net!cambridge1-snf1.gtei.net!news.gtei.net!llslave.llan.ll.mit.edu!not-for-mail Message-ID: <3B49A5FC.DA8E5942@ll.mit.edu> From: Robby Simpson Organization: MIT Lincoln Laboratory X-Mailer: Mozilla 4.76 [en]C-CCK-MCD MITLL (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Syntax Question References: <3B44AAE3.DB048BC8@ll.mit.edu> <5ee5b646.0107051344.1b602151@posting.google.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 09 Jul 2001 08:39:24 -0400 NNTP-Posting-Host: 155.34.61.103 X-Complaints-To: news@ll.mit.edu X-Trace: llslave.llan.ll.mit.edu 994682364 155.34.61.103 (Mon, 09 Jul 2001 08:39:24 EDT) NNTP-Posting-Date: Mon, 09 Jul 2001 08:39:24 EDT Xref: archiver1.google.com comp.lang.ada:9668 Date: 2001-07-09T08:39:24-04:00 List-Id: I have actually been studying ADA for a few months now and have realized how powerful and easy-to-use it can be, especially in multi-threaded (or should I say tasking, hehe) environments (especially if you would like to write code that is actually portable). To all of those C/C++ programmers out there who would like to learn ADA I must recommend Simon Johnston's "ADA95 for C and C++ Programmers". I found that it sped me along on the way to thoroughly understanding ADA and the only thing that I found it left out was the simple below code, which, thanks to this newsgroup, I now understand. Robby Robert Dewar wrote: > > 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).