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 13:14:52 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!crtntx1-snh1.gtei.net!cambridge1-snf1.gtei.net!news.gtei.net!llslave.llan.ll.mit.edu!not-for-mail Message-ID: <3B44CABA.1A4B50BD@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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 05 Jul 2001 16:14:50 -0400 NNTP-Posting-Host: 155.34.61.103 X-Complaints-To: news@ll.mit.edu X-Trace: llslave.llan.ll.mit.edu 994364089 155.34.61.103 (Thu, 05 Jul 2001 16:14:49 EDT) NNTP-Posting-Date: Thu, 05 Jul 2001 16:14:49 EDT Xref: archiver1.google.com comp.lang.ada:9494 Date: 2001-07-05T16:14:50-04:00 List-Id: Thanks for the info/advice. And I guess I should have been more clear, I am porting it to C++. Robby Ted Dennison wrote: > > In article <3B44AAE3.DB048BC8@ll.mit.edu>, Robby Simpson says... > > > >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); > > That's a type extension (and "some_other_type" should probably be > "some_other_var"). I hope you mean you are porting it to C++, because C has > little or no support for OO programming, and *no* direct analog to this. You > might just as well try porting C to assembly as porting Object-Oriented Ada to > C. > > --- > T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html > home email - mailto:dennison@telepath.com