The need for D-scussion (was Re: D Wishlist)

Stan Switzer sjs at spectral.ctt.bellcore.com
Tue Mar 15 03:36:37 AEST 1988


In article <7451 at brl-smoke.ARPA> gwyn at brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>) writes:
> In article <3732 at bloom-beacon.MIT.EDU> tada at 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.



More information about the Comp.lang.c mailing list