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,9d303864ae4c70ad X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Wed, 12 Jan 2005 14:12:54 -0600 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <107bdn6kk6rib2f@corp.supernews.com> <1105542923.381339.189580@z14g2000cwz.googlegroups.com> Subject: Re: Reprise: 'in out' parameters for functions Date: Wed, 12 Jan 2005 14:14:31 -0600 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-bjGYIZ3dUye9erns3nvpVv6WwcVl0reue0pQkIDXs9MBYYKu4VOruACzZzYJqmjECxG904JZto1O6Zz!7m89WehU9RN34QGWaxxhhvkUhr4y5yVOx3KxFDC0+f5V8Ypno9EjleLmZ+OOC+0fSO4V5ayDj8hp X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.22 Xref: g2news1.google.com comp.lang.ada:7698 Date: 2005-01-12T14:14:31-06:00 List-Id: "okellogg" wrote in message news:1105542923.381339.189580@z14g2000cwz.googlegroups.com... ... > This triggers a different question: > > With Ada2005's support for object-dot-operation notation, will it be > possible to write the following? > > package test is > type obj_t is tagged private; > function f (self : access obj_t) return integer; > -- need 'access' mode here because f modifies self > private > -- ... > end test; > > with test; > procedure main is > object : test.obj_t; > retval : integer; > begin > retval := object.f; > end main; > > > My point here is whether main.object need be declared aliased or not. > I would much prefer if it needn't be. I agree with you, but I lost that discussion. It was felt that it was important that this notation was just syntactic sugar, and didn't have any effect on semantics. I would have prefered that "aliased" be not required for tagged objects at all, given that they are always by reference anyway (and you can always take 'access of them once they're passed as a parameter), so there isn't much point to the declaration. But some people thought that "aliased" was useful for readers. I didn't press the point... Randy.