Path: utzoo!mnetor!uunet!husc6!mailrus!nrl-cmf!cmcl2!rutgers!bellcore!spectral!sjs From: sjs@spectral.ctt.bellcore.com (Stan Switzer) Newsgroups: comp.lang.c Subject: Re: The need for D-scussion (was Re: D Wishlist) Message-ID: <6128@bellcore.bellcore.com> Date: 14 Mar 88 17:36:37 GMT References: <12176@brl-adm.ARPA> <1988Mar11.215238.976@utzoo.uucp> <3732@bloom-beacon.MIT.EDU> <7451@brl-smoke.ARPA> Sender: news@bellcore.bellcore.com Reply-To: sjs@spectral.UUCP (Stan Switzer) Organization: Computer Technology Transfer, Bellcore Lines: 13 In article <7451@brl-smoke.ARPA> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) writes: > In article <3732@bloom-beacon.MIT.EDU> tada@athena.mit.edu (Michael Zehr) writes: > >a function the returns both a % b and a / b at the same time. > > This is the first time I recall in the "D" discussion that an useful > genuine language feature has been proposed. All you need now is a > suitable notation.. How about: q = a/b, r = a%b; It works, it is clean, and any respectable compiler will do the right thing.