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-Thread: 103376,a575249b5f286bfe X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.204.153.209 with SMTP id l17mr751647bkw.4.1334969197469; Fri, 20 Apr 2012 17:46:37 -0700 (PDT) MIME-Version: 1.0 Path: h15ni147114bkw.0!nntp.google.com!news1.google.com!goblin1!goblin.stu.neva.ru!nuzba.szn.dk!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Garbage Collection ??? Date: Fri, 20 Apr 2012 19:46:32 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <4f881910$0$2652$703f8584@news.kpn.nl> <5o86o2smbjpz.17l849bmku28v$.dlg@40tude.net> <4f888010$0$2641$703f8584@news.kpn.nl> <4f88ed79$0$2660$703f8584@news.kpn.nl> <6997433.1158.1334740025722.JavaMail.geo-discussion-forums@ynmm10> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1334969196 9644 69.95.181.76 (21 Apr 2012 00:46:36 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Sat, 21 Apr 2012 00:46:36 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Date: 2012-04-20T19:46:32-05:00 List-Id: "Dmitry A. Kazakov" wrote in message news:itjg3eh0o4s8.rm273bcoi1tb$.dlg@40tude.net... > On Thu, 19 Apr 2012 15:26:03 -0500, Randy Brukardt wrote: ... >> Null-exclusions are >> almost exclusively useful for parameters, where you don't need "nothing" >> simply because you don't make the call in that case.) > > and access discriminants, certainly. > > However both cases do not feel good. I mean why there should be a pointer? > Is it always a reference semantics? Frequently it is not. But even if the > semantics is indeed referential, why explicit pointer? I agree in general. Especially for Ada 2012, where you can used "aliased" to make any parameter of any type pass-by-reference. The usual reason to pass a pointer is that you already have one for some other reason. That's typical in data structures, for instance (remember that Ada.Containers has Cursor, which is just like an access type except isn't one explicitly). Randy.