Path: utzoo!mnetor!uunet!husc6!uwvax!dogie!uwmcsd1!ig!agate!ucbvax!ucsfcgl!cca.ucsf.edu!rk9005 From: rk9005@cca.ucsf.edu (Roland McGrath) Newsgroups: comp.lang.c Subject: Re: The need for D-scussion (was Re: D Wishlist) Message-ID: <1190@ucsfcca.ucsf.edu> Date: 15 Mar 88 02:16:26 GMT References: <12176@brl-adm.ARPA> <1988Mar11.215238.976@utzoo.uucp> <3732@bloom-beacon.MIT.EDU> <7451@brl-smoke.ARPA> Reply-To: roland@rtsg.lbl.gov (Roland McGrath) Organization: Hackers Anonymous International, Ltd., Inc. (Applications welcome) Lines: 18 ["The need for D-scussion (was Re: D Wishlist)"] - gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ): } 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: div_t x = div(a, b); ? Why add an operator when there's a standard out there requiring a simple function to do it? -- Roland McGrath ARPA: roland@rtsg.lbl.gov roland@lbl-rtsg.arpa UUCP: ...!ucbvax!lbl-rtsg.arpa!roland