From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9fb8e2af320d5b3e X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newspeer.monmouth.com!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Bus error Date: Sat, 30 Jun 2007 11:34:16 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <0367891DA5DA7E408D42A860FA002F44B0CC48@sma2901.cr.eurocopter.corp> <1l4yqvxoid4n1.1u8eo4oo8ml4m$.dlg@40tude.net> <4685280c$0$14869$9b4e6d93@newsspool4.arcor-online.net> <46865672$0$23136$9b4e6d93@newsspool1.arcor-online.net> <18um6sna5z89.1ksvtmbvj91ds$.dlg@40tude.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1183217656 30528 192.74.137.71 (30 Jun 2007 15:34:16 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sat, 30 Jun 2007 15:34:16 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:7JPcDevqiSYvXrnCx0+iK/EkkoI= Xref: g2news1.google.com comp.lang.ada:16357 Date: 2007-06-30T11:34:16-04:00 List-Id: "Dmitry A. Kazakov" writes: > On Sat, 30 Jun 2007 15:14:39 +0200, Georg Bauhaus wrote: > >> Dmitry A. Kazakov wrote: >>> Note also that Ada's renaming has conceptually little to do >>> with objects. Consider: >>> >>> X : T; >>> X : T renames X; -- Illegal >>> >>> though the "object" is obviously same. Same object, same name, what was >>> wrong? >> >> A programmer construing strange assumptions about the possibility of >> duplicate names in a declarative part of an Ada program, I'd say. > > Where do you see duplicated names? Is bare name an object? Observe that X > referred to exactly same object, if the theory were correct. But apparently > the theory is wrong, and in fact X : T renames X; produces something else. I must say, I'm mystified as to what the above example is supposed illustrate. You can't have two declarations with the same name (unless they are both overloadable). The fact that they are both names for the same object is irrelevant to THAT rule. - Bob