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=3.8 required=5.0 tests=BAYES_00,INVALID_MSGID, RATWARE_MS_HASH,RATWARE_OUTLOOK_NONAME autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,1042f393323e22da X-Google-Attributes: gid109fba,public X-Google-Thread: 1014db,1042f393323e22da X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,1042f393323e22da X-Google-Attributes: gid103376,public From: "Pat Rogers" Subject: Re: Any research putting c above ada? Date: 1997/04/30 Message-ID: <01bc559b$f2892fa0$5a0d6dce@my-pc.neosoft.com>#1/1 X-Deja-AN: 238479691 References: <5ih6i9$oct$1@waldorf.csc.calpoly.edu> <5j078b$b25$1@NNTP.MsState.Edu><5j31lj$qnk@huron.eel.ufl.edu> <335F9D0E.41C67EA6@cacd.rockwell.com><5jqvbj$bd9@mtinsc05.worldnet.att.net> <5k67fl$eit@mtinsc03.worldnet.att.net> Organization: Software Arts and Sciences Newsgroups: comp.lang.c++,comp.lang.c,comp.lang.ada Date: 1997-04-30T00:00:00+00:00 List-Id: [snip] > A better Ada statement of swap would be: > > procedure Swap (A,B : in out Integer) is > Temp : Integer := A; > begin A := B; B := Temp; end Swap; > > I'm not going to count characters, but that feels less verbose than > the C not more. How about the even shorter: procedure Swap is new Exchange( Integer ); :) :) :)