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, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,cce4354abe7758ef,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!n2g2000vba.googlegroups.com!not-for-mail From: vlc Newsgroups: comp.lang.ada Subject: Changing default values in derived types Date: Sun, 30 Aug 2009 08:05:34 -0700 (PDT) Organization: http://groups.google.com Message-ID: <18c7529c-1dcb-416d-a1ae-71a713ebed45@n2g2000vba.googlegroups.com> NNTP-Posting-Host: 87.221.73.225 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1251644734 9780 127.0.0.1 (30 Aug 2009 15:05:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 30 Aug 2009 15:05:34 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: n2g2000vba.googlegroups.com; posting-host=87.221.73.225; posting-account=ROuOHgoAAABopjDuvPBd02HgYVR-VCZk User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.64 (X11; Linux i686; U; en) Presto/2.1.1,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8058 Date: 2009-08-30T08:05:34-07:00 List-Id: Hi *, is there a way to change a default value upon type derivation? type PT is tagged record V : Float := 1.0; end record; type CT is new PT with null record; Is there a way to use another default value for V in CT? I already tried with controlled types using different Initialize procedures, but that's quite ugly. Thanks a lot in advance!