You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expanded correctly or gave a more descriptive error message. I have a custom setproperties! where I wanted to use :atomic on special handling of the setfield! operation and get confused about this because the error shows:
julia>mutable struct A
@atomic a::Intend
julia> a =A(1)
A(1)
julia>@atomicsetfield!(a, :a, 2)
ERROR: LoadError: could not parse @atomic expression setfield!(a, :a, 2)
I don't know how you could, since that call syntax is already defined to mean an atomic update of the first argument expression (e.g. of a). Either as a field update (currently implemented now):
I think it would be nice if
expanded correctly or gave a more descriptive error message. I have a custom
setproperties!
where I wanted to use:atomic
on special handling of thesetfield!
operation and get confused about this because the error shows:I figured it out after reading https://gist.github.com/vtjnash/11b0031f2e2a66c9c24d33e810b34ec0 that I can provide
:sequentially_consistent
manually.The text was updated successfully, but these errors were encountered: