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=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no 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 12:09:36 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!feed.textport.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <3B44AAE3.DB048BC8@ll.mit.edu> Subject: Re: Syntax Question Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Thu, 05 Jul 2001 15:09:25 EDT Organization: http://www.newsranger.com Date: Thu, 05 Jul 2001 19:09:25 GMT Xref: archiver1.google.com comp.lang.ada:9487 Date: 2001-07-05T19:09:25+00:00 List-Id: 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