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,2dae9e735b6ea318,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-26 06:13:51 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!diablo.theplanet.net!btnet-peer!btnet!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed.siemens.de!news.mch.sbs.de!not-for-mail From: Alfred Hilscher Newsgroups: comp.lang.ada Subject: record question Date: Fri, 26 Oct 2001 15:13:48 +0200 Organization: Siemens AG Message-ID: <3BD9618C.D154FE0C@icn.siemens.de> NNTP-Posting-Host: 139.21.122.158 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:15233 Date: 2001-10-26T15:13:48+02:00 List-Id: Hi, assume that I have a record like the one below. I can assign aggregates in the case that I have subcomponents, but how do I assign if I don't have? procedure RT is type x (i : Integer := 0) is record case i is when 0 => null; when 1..10 => s : STRING (1..10); when others => null; end case; end record; y : x; begin y := (1, "ABC "); -- this is OK y := (99); -- but, how do that ? y.i := 99; -- do not work either, so how assign a value different to 1..10 ? end RT;