https://issues.dlang.org/show_bug.cgi?id=21215

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #1 from [email protected] ---
This is intended behaviour.

When recurrency function is called with 0, sequence.dropExactly is called with
0ul - 1, which overflows to ulong.max. The code is multiplying the previous
factorial ulong.max times.

It is not an infinite loop literally, but would presumably take thousands of
years to complete.

--

Reply via email to