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

Roland McGrath rk9005 at cca.ucsf.edu
Tue Mar 15 12:16:26 AEST 1988


["The need for D-scussion (was Re: D Wishlist)"] - gwyn at brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>):
} 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:
	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 at rtsg.lbl.gov roland at lbl-rtsg.arpa
UUCP: ...!ucbvax!lbl-rtsg.arpa!roland



More information about the Comp.lang.c mailing list