Closed paciorek closed 2 days ago
@paciorek I get your point. The documentation states that the default value of length
is 0, so by not providing it, the length is set to 0. Hence, I think the behavior matches what is documented. It should work to say length = length(x)
. My inclination is to not change this and consider generalizing it in nCompiler
with a toggle to maintain all "classic nimble" behavior such as this.
If we don't provide
length
, then the default of 0 seems to override the fact that we are providingvalue
:I'm guessing this is not what we want and in fact it's the cause of the floating point exception in issue #1504.
I haven't dived into the details of what is going on.
@perrydv thoughts on what you expect to happen in this case?