comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Should weak counted reference be able to be strengthened?
Date: Tue, 25 Nov 2014 15:49:49 -0600
Date: 2014-11-25T15:49:49-06:00	[thread overview]
Message-ID: <m52thu$956$1@loke.gir.dk> (raw)
In-Reply-To: 1xbl1kdcf9at5.1dfv4py4kvx0o.dlg@40tude.net

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> wrote in message 
news:1xbl1kdcf9at5.1dfv4py4kvx0o.dlg@40tude.net...
...
> Instead of introducing "crazy beautiful" implicit dereference, Ada 2012
> should have delegation support for the patterns like this.

Depending heavily on interfaces is a sure way to madness. :-)

But the real problem here is I don't see any way to add "delegation support" 
that actually saves much over the explicit version that you showed. We 
certainly don't want *everything* to delegate (it has to be declared somehow 
for the particular operations in question), and because of overloading we 
have to at least have the complete profile. That means an awful lot of 
typing (and source text to read), and lots of chance for errors.

In a sense, Ada 2012 has delegation support as one can use expression 
functions that way. (If I had gotten the full design in place, they could 
have been used with an interface type to provide a default implementation as 
well, which could have been designed to delegate. But we left out the two 
options for expression functions [staticness, and the interface cases].)

                                   Randy.



  reply	other threads:[~2014-11-25 21:49 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-21 11:07 Should weak counted reference be able to be strengthened? Natasha Kerensikova
2014-11-21 13:16 ` Dmitry A. Kazakov
2014-11-21 15:00   ` Natasha Kerensikova
2014-11-21 16:50     ` Dmitry A. Kazakov
2014-11-21 18:24       ` Natasha Kerensikova
2014-11-21 19:36         ` Dmitry A. Kazakov
2014-11-21 22:28           ` Randy Brukardt
2014-11-22  9:57           ` Natasha Kerensikova
2014-11-22 10:19             ` Dmitry A. Kazakov
2014-11-22 10:36               ` Natasha Kerensikova
2014-11-22 11:15                 ` Dmitry A. Kazakov
2014-11-21 22:39       ` Randy Brukardt
2014-11-21 22:49         ` Shark8
2014-11-22  8:42           ` Dmitry A. Kazakov
2014-11-22  8:42         ` Dmitry A. Kazakov
2014-11-24 22:15           ` Randy Brukardt
2014-11-25  8:36             ` Dmitry A. Kazakov
2014-11-25 21:49               ` Randy Brukardt [this message]
2014-11-26  9:28                 ` Dmitry A. Kazakov
2014-11-26 17:51                   ` brbarkstrom
2014-11-26 21:09                   ` Randy Brukardt
replies disabled

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