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

Karl Heuer karl at haddock.ISC.COM
Wed Mar 16 05:48:40 AEST 1988


In article <6128 at bellcore.bellcore.com> sjs at 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 at haddock.isc.com), The Walking Lint



More information about the Comp.lang.c mailing list