From: ka@socrates.hr.att.com (Kenneth Almquist)
Subject: Re: Ada self-referential operators
Date: Mon, 6 Feb 1995 20:51:23 GMT
Date: 1995-02-06T20:51:23+00:00 [thread overview]
Message-ID: <D3LJ9o.K3H@nntpa.cb.att.com> (raw)
In-Reply-To: 3grqrf$jkd@gnat.cs.nyu.edu
Robert Dewar <dewar@cs.nyu.edu> wrote:
> It is not that I think :+= is peculiar because it is not in the RM, rather
> +:= is not in the RM because it is peculiar, i.e. it would be VERY difficult
> to put it in without running into nasty semantic ramifications.
Perhaps I'm missing them. What about the following rules?
1. For each function of the form
function "+"(L: type_1; R: type_2) return type_1;
where type_1 is not limited, implicitly define:
procedure "+:=" (L: in out type_1; R: in type_2) is
begin
L := L + R;
end "+:=";
These implicit definitions should behave similarly to the implicit
definitions of "/=" which occur in Ada 83 and Ada 95. Explicit
defintions of "+:=" are illegal.
2. If a statement of the form "A +:= B;" is encountered, treat it as
the procedure call "+:="(A, B).
Kenneth Almquist
next prev parent reply other threads:[~1995-02-06 20:51 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-02-01 9:34 Ada self-referential operators R.A.L Williams
[not found] ` <3hnoe6$1aoi@info4.rus.uni-stuttgart.de>
[not found] ` <3grqrf$jkd@gnat.cs.nyu.edu>
1995-02-06 20:51 ` Kenneth Almquist [this message]
1995-02-08 2:06 ` John Volan
1995-02-08 6:45 ` Jay Martin
1995-02-08 9:04 ` Brian Rogoff
1995-02-08 20:13 ` John DiCamillo
1995-02-09 23:52 ` David Weller
1995-02-10 6:48 ` pang
1995-02-10 16:15 ` Robert I. Eachus
1995-02-09 17:30 ` Norman H. Cohen
1995-02-11 13:56 ` Robert Dewar
[not found] ` <3id9qi$a7m@usenet.srv.cis.pitt.edu>
1995-02-25 13:28 ` Larry Kilgallen, LJK Software
1995-03-08 23:26 ` Val Kartchner
-- strict thread matches above, loose matches on Subject: below --
1995-02-10 17:07 R.A.L Williams
1995-02-11 5:34 ` Keith Thompson
[not found] <3id0oo$e64@gnat.cs.nyu.edu>
1995-02-23 17:45 ` Brian Hanson
1995-03-01 18:41 ` Thomas G. Coles (1W0)
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox