comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adambeneschan@aol.com>
Subject: Re: GNAT GPL 2013 bug?
Date: Mon, 12 Aug 2013 10:20:05 -0700 (PDT)
Date: 2013-08-12T10:20:05-07:00	[thread overview]
Message-ID: <b984f511-040c-4721-a800-95fbbbe07314@googlegroups.com> (raw)
In-Reply-To: <1evw1coxfrfu5$.1atfpln47qs0j.dlg@40tude.net>

On Monday, August 12, 2013 10:03:14 AM UTC-7, Dmitry A. Kazakov wrote:

> That implied null-exclusion for controlling parameters does not change/save
> anything. Just added language weirdness that
> 
>    "access T" is subtype conformant to "not null access T" depending on T
> 
> !, for apparently no gain.

Well, from the point of view of dynamic semantics, a call to a dispatching subprogram *has* to fail if given a null parameter.  There's no way around this.  So, dynamically, it's going to behave like a null-excluding access type no matter what.  From a static-semantics point of view, the language designers could have decreed that the parameter is *not* implicitly a null-excluding parameter even though it behaves like one at run-time.  That's a choice they could have made, although then someone else probably would have considered this to be "language weirdness".  They just can't win.

                               -- Adam


  reply	other threads:[~2013-08-12 17:20 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-09  9:47 GNAT GPL 2013 bug? Dmitry A. Kazakov
2013-08-09 10:38 ` sbelmont700
2013-08-09 11:01   ` Dmitry A. Kazakov
2013-08-09 11:06     ` sbelmont700
2013-08-09 11:36       ` Dmitry A. Kazakov
2013-08-09 15:48     ` Adam Beneschan
2013-08-09 16:11       ` Simon Wright
2013-08-09 16:52         ` Adam Beneschan
2013-08-09 18:25           ` Simon Wright
2013-08-09 18:39             ` Adam Beneschan
2013-08-09 19:28               ` Adam Beneschan
2013-08-09 20:05                 ` Robert A Duff
2013-08-09 20:30                   ` Adam Beneschan
2013-08-09 21:35                     ` Simon Wright
2013-08-10 15:10                     ` Shark8
2013-08-09 16:03     ` Simon Wright
2013-08-09 18:55     ` Randy Brukardt
2013-08-09 19:27       ` Dmitry A. Kazakov
2013-08-09 20:04         ` Robert A Duff
2013-08-10  6:51           ` Dmitry A. Kazakov
2013-08-12 16:52             ` Adam Beneschan
2013-08-12 17:03               ` Dmitry A. Kazakov
2013-08-12 17:20                 ` Adam Beneschan [this message]
2013-08-12 18:34                   ` Dmitry A. Kazakov
2013-08-12 20:12             ` Randy Brukardt
2013-08-13  6:43               ` Dmitry A. Kazakov
replies disabled

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