thank you for the information
On Sunday, August 9, 2015 at 11:13:24 PM UTC-4, Yichao Yu wrote: > > On Sun, Aug 9, 2015 at 11:08 PM, Jeffrey Sarnoff > <jeffrey...@gmail.com <javascript:>> wrote: > > here is an example of reinterpreting a subarray in v0.4: > > > > ```julia > > julia> a=Int8[1,2,3,4] > > 4-element Array{Int8,1}: > > 1 > > 2 > > 3 > > 4 > > > > julia> b=reinterpret(Uint8,a) > > 4-element Array{UInt8,1}: > > 0x01 > > 0x02 > > 0x03 > > 0x04 > > > > julia> b=reinterpret(Uint8,a[2:3]) > > Indexing does NOT currently return a SubArray on 0.4. > > > 2-element Array{UInt8,1}: > > 0x02 > > 0x03 > > ``` > > > > On Sunday, August 9, 2015 at 9:45:07 PM UTC-4, Sebastian Good wrote: > >> > >> I found myself trying to reinterpret a subarray today, and it didn't > work. > >> There are obviously plenty of cases where this makes no sense, but it > would > >> be convenient where it did. Is this on someone's roadmap? For instance: > >> > >> reinterpret(Int16, sub(readbytes(...), 5:10)) > >> >