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,FREEMAIL_FROM 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-12 04:28:47 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!psinet-eu-nl!psiuk-p4!uknet!diablo.dera.gov.uk!dera!not-for-mail From: "Stephen Cole" Newsgroups: comp.lang.ada Subject: Re: Simple Question 3 Date: Fri, 12 Oct 2001 12:33:34 +0100 Organization: Defence Evaluation & Research Agency Message-ID: <9q6k2r$p8g$1@trog.dera.gov.uk> References: <9q49v5$6dj$1@trog.dera.gov.uk> NNTP-Posting-Host: 146.80.10.150 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Xref: archiver1.google.com comp.lang.ada:14380 Date: 2001-10-12T12:33:34+01:00 List-Id: I would have thought that the compiler should just through the assignment X := Unit() out, because it does not statically match. I do not see why the compiler has the right to demand you write a Unit() function for the derived type. Is there a deeper reason why it does? wrote in message news:pepx7.4767$gT6.3058598@news1.rdc1.sfba.home.com... > > function Unit return MyRcd; > > > > type MyNewRcd is new MyRcd with > > record > > c: Integer; > > end record; > >... > >It wants me to define a version of Unit() for each derived type?! Why? > X : MyNewRcd; > begin > X := Unit; > question: what is the value of X.c?