Closed Vilin97 closed 1 year ago
I got a hard-to-find bug by doing @allowscalar x = a[1] and then having x undefined. My intuition about what the scope of @allowscalar ought to be is clearly different from what the scope actually is. This addition to the docstring should help.
@allowscalar x = a[1]
x
@allowscalar
This is a bug; fixed in https://github.com/JuliaGPU/GPUArrays.jl/pull/474.
I got a hard-to-find bug by doing
@allowscalar x = a[1]
and then havingx
undefined. My intuition about what the scope of@allowscalar
ought to be is clearly different from what the scope actually is. This addition to the docstring should help.