Skip to content
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

Added Copy to Pattern Args #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

loparcog
Copy link
Collaborator

As seen in Issue #26, there's are some issues with passing patterns by reference instead of by value. When using the original and passed pattern, values get divided between the two. I went through the pattern files and looked for any pattern arguments, using the copy library to do a shallow copy of each pattern so the original pattern will not be affected.

Other than PRef, this was a pretty broad change as most things seemed like they would benefit a shallow copy, so if any should be kept as a deep copy let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant