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,d80cdc1b3ff5b2f9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-14 14:00:30 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3BC9FD23.ACEB872A@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Simple Question 3 References: <9q49v5$6dj$1@trog.dera.gov.uk> <9qcmt9$8n1$1@newsg1.svr.pol.co.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sun, 14 Oct 2001 21:00:29 GMT NNTP-Posting-Host: 63.178.187.53 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 1003093229 63.178.187.53 (Sun, 14 Oct 2001 14:00:29 PDT) NNTP-Posting-Date: Sun, 14 Oct 2001 14:00:29 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Sun, 14 Oct 2001 13:56:50 PDT (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:14487 Date: 2001-10-14T21:00:29+00:00 List-Id: Stephen Cole wrote: > > Look....people...my confusion is deeper than that. Its about this whole > question of what a primitive operation is! A primitive operation of a type is declared in the same package specification as the type declaration, and has a parameter of the type or returns a value of the type. > Example > Look at the following code.... > > package MyTest is > > type MyTestType1 is tagged > record > a: Integer; > b: Float; > end record; > > function UnitA(a: MyTestType1) return Integer; > function UnitB(a: MyTestType1) return MyTestType1; > function UnitC return MyTestType1; > > type MyTestType2 is new MyTestType1 with > record > c: Integer; > end record; > > end MyTest; We could perhaps be of more assistance if you could define what you expect the compiler to do for X : Mytesttype2 := Unitc; What is the value of X after initialization? Specifically, what is the value of X.C? -- Jeff Carter "I fart in your general direction." Monty Python & the Holy Grail