JuliaLang/julia — Issue #299: darray init function called with Float64
Author: goretkin
Created: 2011-12-11 17:34:15+00:00
State: open

If I pass the start indices of each array as an array of floats (the second `darray` construction below), then `darray` passes a float to the second argument of the `init` function (called `sz`). It might be better if darray complained about the array of floats in the first place.

```
julia> darray( (T,sz,da)->zeros(T,sz), Float64, (100,) , 1, [1] , [1,101])
[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ... 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]

julia> darray( (T,sz,da)->zeros(T,sz), Float64, (100,) , 1, [1] , [1.0,101.0])
no method zeros(BitsKind,(Float64,))
```