comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Garbage Collection ???
Date: Fri, 20 Apr 2012 19:46:32 -0500
Date: 2012-04-20T19:46:32-05:00	[thread overview]
Message-ID: <jmt01b$9dc$1@munin.nbi.dk> (raw)
In-Reply-To: itjg3eh0o4s8.rm273bcoi1tb$.dlg@40tude.net

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> 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.





  reply	other threads:[~2012-04-21  0:46 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-13 12:14 Garbage Collection ??? ldries46
2012-04-13 13:20 ` Dmitry A. Kazakov
2012-04-13 19:27   ` ldries46
2012-04-13 20:06     ` Dmitry A. Kazakov
2012-04-13 22:49     ` Brian Drummond
2012-04-14  3:21       ` ldries46
2012-04-14 18:21         ` Robert A Duff
2012-04-18  9:07           ` Julian Leyh
2012-04-19 14:36             ` Robert A Duff
2012-04-19 20:26               ` Randy Brukardt
2012-04-20  7:11                 ` Dmitry A. Kazakov
2012-04-21  0:46                   ` Randy Brukardt [this message]
  -- strict thread matches above, loose matches on Subject: below --
1992-04-22 18:55 Garbage collection? dog.ee.lbl.gov!overload.lbl.gov!agate!spool.mu.edu!yale.edu!jvnc.net!darw
1992-04-21 23:48 Robert I. Eachus
1992-04-21 23:02 Rick Hudson
1992-04-21 21:09 titan.ksc.nasa.gov!mcroberts
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox