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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,341730abd589d6e9 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: string operations Date: 2000/11/20 Message-ID: <8vbfns$do2$1@nnrp1.deja.com>#1/1 X-Deja-AN: 695776015 References: <3A16A4D5.CE941970@t-online.de> <8v90vm$j5f$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x51.deja.com:80 (Squid/1.1.22) for client 205.232.38.240 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Nov 20 15:24:52 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-11-20T00:00:00+00:00 List-Id: In article , "Anders Wirzenius" wrote: > To me the example would have been even more revealing if > the Put statement had been written > Put(Character'Val(Character'Pos ('0') + N mod 10)); Odd ... addition is after all commutative, can you explain why in this case a+b is clearer than b+a I personally prefer the form I had, because from an algorithmic point of view it is N mod 10 that is important, and the Character'Pos is a minor detail for keeping the types right ... Sent via Deja.com http://www.deja.com/ Before you buy.