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,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,17251c4a1886ffce X-Google-Attributes: gid103376,public From: "Nick Roberts" Subject: Re: "Moving" objects of limited type Date: 2000/06/04 Message-ID: <8he565$2u7fc$1@fu-berlin.de>#1/1 X-Deja-AN: 630969743 References: <87wvk6xz5p.fsf@deneb.cygnus.argh.org> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Trace: fu-berlin.de 960141318 3087852 212.49.231.53 (16 [25716]) X-MSMail-Priority: Normal Newsgroups: comp.lang.ada Date: 2000-06-04T00:00:00+00:00 List-Id: I would suggest: procedure Transfer (From, To: in out Object_Type) [is abstract]; If you are worried that the word 'transfer' might be interpreted as meaning 'swap', you could use the parameter names to counteract this, e.g.: ... Saved_Text := Working_Text; -- makes copy Beautify(Working_Text); if not User_Agrees then Transfer(From => Saved_Text, To => Working_Text); else Saved_Text := Empty_Text; -- deletes ... It is perhaps curious to note how this example could be interpreted as a demonstration of how 'ugly'* the classic ":=" assignment notation is. (Personally, I find ":=" too readable to be so condemned. If nothing else, it helps break up the code.)** -- Nick Roberts http://www.adapower.com/lab/adaos *e.g. inconsistent with the general form of procedure call **Reading Pascal Obry's reply, I would sometimes find whole pages of Cobol (in OFPC***) consisting entirely of MOVEs, in times gone by. Nobody had taught them MOVE CORRESPONDING. Sad. ***Other Funny Programmers' Code "Florian Weimer" wrote in message news:87wvk6xz5p.fsf@deneb.cygnus.argh.org... > ... > Now my question: What's an appropriate name for such an operation? > "Move", "Relocate", "Rename", "Teleport"? Maybe this operation is > quite common, and in this case I want to use the correct term.