From: Jeff Carter <jcarter@CapAccess.org>
To: "comp.lang.ada@list.deja.com" <comp.lang.ada@list.deja.com>
Subject: Re: C like op= proposal
Date: 1999/08/18
Date: 1999-08-18T00:00:00+00:00 [thread overview]
Message-ID: <Pine.SUN.3.91-FP.990818113007.5192A-100000@cap1.capaccess.org> (raw)
In-Reply-To: 7pefco$v7o$1@nnrp1.deja.com
I recall something like this
A_Nice_Long_Name := @ ** 2 + @ + 1.0 / @ + C;
in a revision request. Obviously it was not incorporated into the language.
One problem with this kind of syntax can be seen from the following example:
type Rec is record
I : Integer;
end record;
type Rec_Ptr is access all Rec;
Count : Natural := 0;
function Side_Effects return Rec_Ptr is
Result : Rec_Pointer := new Rec;
begin -- Side_Effects
Count := Count + 1;
Result.I := Count;
return Result;
end Side_Effects;
...
Side_Effects.I := @ + @ / 2 + 1;
What is the value of Count after executing this statement?
Jeff
"Now go away or I shall taunt you a second time."
Monty Python & the Holy Grail
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
next prev parent reply other threads:[~1999-08-18 0:00 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-15 0:00 C like op= proposal Brian Rogoff
1999-08-15 0:00 ` Ray Blaak
1999-08-15 0:00 ` Brian Rogoff
1999-08-16 0:00 ` Gautier
1999-08-17 0:00 ` Samuel Tardieu
1999-08-17 0:00 ` Andi Kleen
1999-08-18 0:00 ` Robert Dewar
1999-08-17 0:00 ` Brian Rogoff
1999-08-18 0:00 ` Ted Dennison
1999-08-18 0:00 ` Jeff Carter [this message]
1999-08-18 0:00 ` Keith Thompson
1999-08-19 0:00 ` Tarjei T. Jensen
1999-08-19 0:00 ` Lance Kibblewhite
1999-08-19 0:00 ` Robert Dewar
1999-08-20 0:00 ` P.S. Norby
1999-08-21 0:00 ` Robert Dewar
1999-08-19 0:00 ` tmoran
1999-08-19 0:00 ` Ted Dennison
1999-08-19 0:00 ` Michael F. Yoder
1999-08-21 0:00 ` Keith Thompson
1999-08-18 0:00 ` Robert I. Eachus
1999-08-18 0:00 ` Gautier
1999-08-18 0:00 ` Robert Dewar
1999-08-18 0:00 ` Brian Rogoff
1999-08-19 0:00 ` Robert Dewar
1999-08-21 0:00 ` Brian Rogoff
1999-08-23 0:00 ` Robert A Duff
1999-08-18 0:00 ` Andi Kleen
1999-08-17 0:00 ` Gautier
1999-08-18 0:00 ` Gautier
1999-08-17 0:00 ` John Duncan
1999-08-17 0:00 ` Gautier
1999-08-16 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox