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=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a24:ed07:: with SMTP id r7-v6mr7041101ith.27.1527544120736; Mon, 28 May 2018 14:48:40 -0700 (PDT) X-Received: by 2002:a9d:51d1:: with SMTP id d17-v6mr1114121oth.12.1527544120270; Mon, 28 May 2018 14:48:40 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!u74-v6no5703601itb.0!news-out.google.com!f20-v6ni5426itd.0!nntp.google.com!u74-v6no5703596itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 28 May 2018 14:48:19 -0700 (PDT) In-Reply-To: <90f0f8da-dadd-4341-bc0f-dbda94b0516c@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=76.113.16.86; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 76.113.16.86 References: <55ce14eb-6b83-4ea0-a550-f9e1410d0b06@googlegroups.com> <51dfb377-1b3e-45ca-a211-158101efe557@googlegroups.com> <090d6eb2-9f52-4471-a22e-ce1bdf457188@googlegroups.com> <90f0f8da-dadd-4341-bc0f-dbda94b0516c@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Strings with discriminated records From: Shark8 Injection-Date: Mon, 28 May 2018 21:48:40 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:52753 Date: 2018-05-28T14:48:19-07:00 List-Id: On Monday, May 28, 2018 at 3:15:32 PM UTC-6, Mehdi Saada wrote: > I don't understand this story of anonymous object... Is it optimizing anything ? No, it could be optimized, but here I'm inserting $$ to delimit portions of a possible object. declare $$M : Nights.Message$$ := $$Nights.Create ("Hello World");$$ begin null; end; "M : Nights.Message" is one object; ":=" is its initialization; "Nights.Create" is the value to init. The call produces a value, this is the anonymous object, that value is assigned to M. Using a RENAMES, the value that is produced by the call is given a name. See?