-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confusing behavior on setindex! of a vector Observable #31
Comments
My take: |
Ah, that makes sense, thanks! Maybe there could be a more intuitive method of triggering the signal, somehting like trigger(points), that executes the rest of the setindex[] method, without the first line? Or just as an alias for that line? Performance-wise, I guess o.val = val is anyway compiled to a no-op. |
Probably more semantically obvious than |
I'm going to close this as intended behavior. It might make sense to warn more about using mutable values inside of observables in the documentation. |
This can be handy when trying to figure out where some `var"#31#32"` function was defined.
This can be handy when trying to figure out where some `var"#31#32"` function was defined.
This can be handy when trying to figure out where some `var"#31#32"` function was defined.
This can be handy when trying to figure out where some `var"#31#32"` function was defined.
This can be handy when trying to figure out where some `var"#31#32"` function was defined.
This can be handy when trying to figure out where some `var"#31#32"` function was defined.
I find the following behavior a bit confusing (from Makie examples):
later, in a function
The example does not work if the last line is excluded, even though it seems to be doing nothing. Is the issue that
points[][idx[]] = pos
somehow does not send a change signal?The text was updated successfully, but these errors were encountered: