Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!necntc!ima!haddock!karl From: karl@haddock.ISC.COM (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: The need for D-scussion (was Re: D Wishlist) Message-ID: <2981@haddock.ISC.COM> Date: 15 Mar 88 19:48:40 GMT References: <12176@brl-adm.ARPA> <1988Mar11.215238.976@utzoo.uucp> <3732@bloom-beacon.MIT.EDU> <7451@brl-smoke.ARPA> <6128@bellcore.bellcore.com> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Boston Lines: 9 In article <6128@bellcore.bellcore.com> sjs@spectral.UUCP (Stan Switzer) writes: >>>a function the returns both a % b and a / b at the same time. > >How about: q = a/b, r = a%b; >It works, it is clean, and any respectable compiler will do the right thing. That's fine if you actually have variables a and b, but it's not quite that simple if they are more general expressions. Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint