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 Newsgroups: comp.lang.ada Subject: Re: Bus error References: <0367891DA5DA7E408D42A860FA002F44B0CC48@sma2901.cr.eurocopter.corp> <1l4yqvxoid4n1.1u8eo4oo8ml4m$.dlg@40tude.net> <4685280c$0$14869$9b4e6d93@newsspool4.arcor-online.net> From: Markus E Leypold Organization: N/A Date: Sat, 30 Jun 2007 15:31:13 +0200 Message-ID: <91odix36xq.fsf@hod.lan.m-e-leypold.de> User-Agent: Some cool user agent (SCUG) Cancel-Lock: sha1:2r9JDgpeqOuegFxZY5n0yhebVNA= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 88.72.231.117 X-Trace: news.arcor-ip.de 1183209660 88.72.231.117 (30 Jun 2007 15:21:00 +0200) X-Complaints-To: abuse@arcor-ip.de Path: g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!news.unit0.net!newsfeed.arcor-ip.de!news.arcor-ip.de!not-for-mail Xref: g2news1.google.com comp.lang.ada:16374 Date: 2007-06-30T15:31:13+02:00 List-Id: > On Fri, 29 Jun 2007 17:44:22 +0200, Georg Bauhaus wrote: > >> Dmitry A. Kazakov wrote: >>> On Fri, 29 Jun 2007 11:35:28 +0200, Duncan Sands wrote: >>> >>>> in Ada 95 you could do >>>> >>>> X : T renames Factory; >>> >>> Yes, you're right. It should be illegal. Semantically it is same as >>> >>> X : Integer renames 1; -- Illegal >> >> I don't think that renaming an object is the same as renaming >> a number literal because the literal isn't declared anywhere. >> Wheras I could say that a returned object is declared as part >> of the function declaration. > > Oh, if that is a problem then take this instead: > > X : Integer renames -1; -- Still illegal, though not a literal > > But clearly your argument is nonsensical, literal is a syntactic element, How about the difference between lvalues and rvalues? - M