julia> uint8([1,255])
WARNING: uint8(x::AbstractArray) is deprecated, use round(UInt8,x) instead.


Besides not really understanding why the deprecation (older way is clearer 
clear to me), is there a way to do this in a way that pleases both 0.3 and 
0.4 versions?
I mean, no annoying deprecation warning but one that works for 0.3 too (the 
round(UInt8,x) doesn't).

But even better, is there a way to create the array directly in Uint8 like 
we can do with  "zeros(Uint8, 2,3)" instead of rounding a Int64 temporary 
copy?

Reply via email to