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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,10444cff97404845 X-Google-Attributes: gid103376,public From: Jeff Carter Subject: Re: C like op= proposal Date: 1999/08/18 Message-ID: #1/1 X-Deja-AN: 514245197 Content-Transfer-Encoding: 7bit References: <7pefco$v7o$1@nnrp1.deja.com> To: "comp.lang.ada@list.deja.com" X-DejaID: _xiz/AIPid6y8ogTeOoShHLorQ4WVTNCi?= Content-Type: text/plain Organization: Deja.com - Share what you know. Learn what you don't. Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-08-18T00:00:00+00:00 List-Id: 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.