template bug?

Janice Caron caron800 at googlemail.com
Fri Feb 29 03:35:01 PST 2008


On 29/02/2008, Denton Cockburn <diboss at hotmail.com> wrote:
>  template factorial(real n)

Forgive me, but factorial is not defined for real numbers. The domain
of factorial is the positive integers only.

Of course, if you want to write a compile-time gamma function! ... :-)

(I know, I know - it's a bug report, not a math lesson. I'll shut up now).



More information about the Digitalmars-d mailing list