Il giorno lunedì 19 ottobre 2015 11:29:36 UTC+2, Gunnar Farnebäck ha 
scritto:
>
>
>  
> Is this good enough?
>
> julia> immutable Words32
>          hi::Int32
>          lo::Int32
>        end
>
> julia> a = 0x7fffffff3fffffff
> 0x7fffffff3fffffff
>
> julia> reinterpret(Words32, [a])
> 1-element Array{Words32,1}:
>  Words32(1073741823,2147483647)
>

It seems to me (I have no expertise to evaluate llvm or machine code) that 
there is a considerable overload in getting the array of a and then 
dereferencing the array of what I get. In my example C/C++ does all this 
ahead of time, I'm not sure that Julia would. 

Reply via email to