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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 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:13:41 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!psinet-eu-nl!psiuk-p4!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Syntax Question Date: Thu, 5 Jul 2001 14:32:53 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <9i2bsn$929$1@nh.pace.co.uk> References: <3B44AAE3.DB048BC8@ll.mit.edu> NNTP-Posting-Host: 136.170.200.133 X-Trace: nh.pace.co.uk 994357975 9289 136.170.200.133 (5 Jul 2001 18:32:55 GMT) X-Complaints-To: newsmaster@pace.co.uk NNTP-Posting-Date: 5 Jul 2001 18:32:55 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:9488 Date: 2001-07-05T18:32:55+00:00 List-Id: First off, let me advise you of this: YOU'RE GOING THE WRONG WAY!!! :-) Why you want to go from Ada (note character case) to C, I do not know, but it is *definitely* a step backward. The code you refer to is a case where "some_var" is of a tagged record type ("some_type"). The tagged record type is itself derived from another type in which it extends the original type with two new fields: attr_x and attr_y. What you have in the assignment statement is an "aggregate" which is a sort of literal. It specifies data values to be assigned to some_var that include values for the extended record fields. There is no equivalent to this in C. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "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); > > Robby