Origins of the D Programming Language

Neia Neutuladh neia at ikeran.org
Tue Dec 4 00:59:00 UTC 2018


On Mon, 03 Dec 2018 16:02:30 -0800, H. S. Teoh wrote:
> Furthermore, it's not just off by 1, since i=1 is a redundant case. The
> loop really ought to start with 2.

factorial(0) is 1 because it's the product of an empty sequence.


More information about the Digitalmars-d mailing list