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,2104a7a088811513 X-Google-Attributes: gid103376,public From: Martin Dowie Subject: Re: [Q] Renaming negation operator in Ada 83 Date: 1999/04/22 Message-ID: <371F7BD1.F3B769B0@dowie-cs.demon.co.uk>#1/1 X-Deja-AN: 469677475 Content-Transfer-Encoding: 7bit X-NNTP-Posting-Host: dowie-cs.demon.co.uk:193.237.34.207 References: X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 924810601 nnrp-08:8995 NO-IDENT dowie-cs.demon.co.uk:193.237.34.207 MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-04-22T00:00:00+00:00 List-Id: same as all the other renames, the difference with the subtract operator is there is only 1 parameter e.g. procedure main is package nested is type an_integer is range -10 .. 10; end nested; function "-" (x : in nested.an_integer) return nested.an_integer renames nested."-"; a, b : nested.an_integer; begin a := 10; b := -a; end main; "." wrote: > I can't find the answer to this in the LRM. I'd like to rename the negation > operator (unary -) in order to avoid a 'use' clause. I can manage to rename > the subtraction operator but I don't know how to do it with the negation > operator. Can someone tell me how it can be done, if it can be done? > > TIA