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
Deleting the last key by negative index does not work; deleting keys by value deletes all of them #183
Comments
Negative indexes are not implemented. Please read the Forum about (or at very least, the documentation).
What you want to accomplish may be possible using
MM patches are not a programming language. They are a convoluted FSM declaring notation. |
Yes, the documentation says:
And obviously deleting ALL keys when trying to select by value is a bug. |
Yes and no. There's nothing in the documentation saying that What I think it's happening is the code finds the first Check https://github.com/sarbian/ModuleManager/wiki/Module-Manager-Handbook#arrays The bug is not Semantic matters. |
Ah sure I did learn on re-reading the documentation that deleting a key always deletes all of them unlike nodes. So it seems like it's silently ignoring the value selector. Although again, the documentation says "all options available" but that appears to not actually be correct. |
The documentation sucks, no doubt. |
Since I opened my big mouth here, I need to clarify: there're code to handle negative indexes - but for some nodes only, and |
Possibly related to #75?
Given a node like:
and a patch targeting that node,
-transform,-1 = delete
does nothing-transform[airlockTopB] = delete
deletes all of them-transform,1 = delete
seems to work, but of course it's super fragileThe text was updated successfully, but these errors were encountered: