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

make key and attribute values immutable #714

Merged
merged 1 commit into from
Apr 8, 2016

Conversation

bh11
Copy link
Contributor

@bh11 bh11 commented Apr 4, 2016

Avoid potential problems if the stored key or attribute value is mutable and may be changed accidentally. In most cases, both will be already immutable.

This addresses a problem with mutable keys which showed up in issue #707.

I've decided to make the value immutable as well, to be consistent with ordinary attributes – as far as I can see, neither GAP library nor packages require mutable attributes. If mutable key dependent attributes are needed, it's probably better to add a "mutable" argument, similar to ordinary attributes.

A similar potential problem exists in GAP 4.8 (and probably way back to the origins of KeyDependentOperation, not sure if this needs to be fixed as well. The fix would be slightly different because of the changes in #514.

Avoid potential problems if the stored key or attribute value is mutable and may be changed accidentally. In most cases, both will be already immutable.
@bh11 bh11 added this to the GAP 4.9.0 milestone Apr 4, 2016
@hungaborhorvath hungaborhorvath mentioned this pull request Apr 8, 2016
@bh11 bh11 merged commit 5434201 into gap-system:master Apr 8, 2016
@hungaborhorvath
Copy link
Contributor

@bh11 @markuspf Should the merge of #708 now be revoked after this more general fix?

@olexandr-konovalov olexandr-konovalov added the release notes: added PRs introducing changes that have since been mentioned in the release notes label Jan 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release notes: added PRs introducing changes that have since been mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants