- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 5.7k
Labels
arrays[a, r, r, a, y, s][a, r, r, a, y, s]designDesign of APIs or of the language itselfDesign of APIs or of the language itself
Description
julia> a=[1,2,3]
3-element Vector{Int64}:
 1
 2
 3
julia> a[]
ERROR: BoundsError: attempt to access 3-element Vector{Int64} at index []
Stacktrace:
 [1] throw_boundserror(A::Vector{Int64}, I::Tuple{})
   @ Base ./essentials.jl:14
 [2] checkbounds
   @ ./abstractarray.jl:699 [inlined]
julia> reinterpret(UInt8, a)[]
0x01the last line should error as well
mzy2240, Seelengrab, nsajko and jishnub
Metadata
Metadata
Assignees
Labels
arrays[a, r, r, a, y, s][a, r, r, a, y, s]designDesign of APIs or of the language itselfDesign of APIs or of the language itself