From: Adam Beneschan <adam@irvine.com>
Subject: Re: When is a rename not a rename?
Date: Tue, 29 Jan 2013 16:52:03 -0800 (PST)
Date: 2013-01-29T16:52:03-08:00 [thread overview]
Message-ID: <11f519a9-4516-46b1-829f-95c256b81508@googlegroups.com> (raw)
In-Reply-To: <ke9pfj$pde$1@munin.nbi.dk>
On Tuesday, January 29, 2013 4:28:29 PM UTC-8, Randy Brukardt wrote:
> What else could it mean? We don't want to be ignoring "with" clauses in one
> rarely used case, so it has to cause a semantic dependence here.
>
> And this doesn't have anything to do with the rename per-se; this is a
> compilation unit like any other (that happens to be a rename), and it is the
> compilation unit that has this effect, not the rename. I always think of all
> compilation units as packages (imagining an invisible package wrapping
> anything that isn't a normal package), and when you do that, this makes
> plenty of sense.
Yes... it just requires me to change my thinking a little bit about what a "rename" means. I thought it set up a synonym, but in the case of a library-level rename it isn't quite true; thinking about it as a wrapper makes more sense. It's just a bit surprising, and I was curious whether this was something that was considered when the semantics were defined in Ada 95.
And no, I wouldn't have wanted "with" clauses to be ignored, but the language could have made "with" clauses on library-level renames illegal except for "with" clauses that denoted the renamed unit or an ancestor or a unit on which the renamed unit's specification depends semantically, or something along those lines. Not that I'm proposing any such change now.
-- Adam
next prev parent reply other threads:[~2013-01-30 0:52 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-29 1:24 When is a rename not a rename? Adam Beneschan
2013-01-30 0:28 ` Randy Brukardt
2013-01-30 0:52 ` Adam Beneschan [this message]
2013-01-30 9:31 ` Dmitry A. Kazakov
2013-01-30 14:35 ` ytomino
2013-02-01 10:44 ` Ada novice
2013-02-01 11:27 ` Dmitry A. Kazakov
2013-02-01 17:32 ` Adam Beneschan
2013-02-01 18:31 ` ytomino
2013-02-02 1:40 ` Adam Beneschan
2013-02-02 12:24 ` ytomino
2013-02-02 14:26 ` Robert A Duff
2013-02-02 17:11 ` Shark8
2013-02-02 0:42 ` Brian Drummond
2013-02-02 11:43 ` AdaMagica
2013-02-03 11:50 ` Brian Drummond
2013-02-03 12:16 ` AdaMagica
2013-02-05 9:53 ` Ada novice
2013-02-01 17:48 ` Ada novice
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox