From: ytomino <aghia05@gmail.com>
Cc: mailbox@dmitry-kazakov.de
Subject: Re: When is a rename not a rename?
Date: Wed, 30 Jan 2013 06:35:20 -0800 (PST)
Date: 2013-01-30T06:35:20-08:00 [thread overview]
Message-ID: <53d57522-7444-4b6d-854c-19b3cb55cd24@googlegroups.com> (raw)
In-Reply-To: <1eclfao2yxz9q.h1e6x4vqcmj2$.dlg@40tude.net>
2013年1月30日水曜日 18時31分21秒 UTC+9 Dmitry A. Kazakov:
> I wished the rule that a renaming shall never conflict with the thing is
> renames [and never creates logically new objects].
with XXX;
package YYY is
subype T is XXX.T;
function "=" (Left, Right : T) return Boolean renames XXX."=";
end YYY;
...
declare
use YYY; -- introduce YYY."="
use type YYY.T; -- introduce XXX."="
A, B : T;
begin
if A = B then -- error because two "=" are conflicted!
...
I wish this case may be not conflicted.
There is probably no way to create a package having any entities perfectly rename something in another package.
next prev parent reply other threads:[~2013-01-30 14:35 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
2013-01-30 9:31 ` Dmitry A. Kazakov
2013-01-30 14:35 ` ytomino [this message]
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