stirling numbers and multidimensional arrays

popgen codequestion at mailinator.com
Tue Apr 10 16:10:28 UTC 2018


On Sunday, 8 April 2018 at 16:51:14 UTC, ag0aep6g wrote:
> On 04/08/2018 06:15 PM, popgen wrote:
>> [...]
> [...]
>>  [...]
> [...]
>>  [...]
>
> Should it be `q <= k` here? You're using q as an index into an 
> array of length k + 1. If you go up to i, you'll exceed that 
> and go out of bounds.
>
> That you're seeing a segfault instead of a range error 
> indicates that you're compiling with -release. Better not do 
> that when debugging.

Thank you for your help! And I learned two things, the error in 
the code and not to use -release while debugging.


More information about the Digitalmars-d-learn mailing list