Skip to content

Conversation

@leonerd
Copy link
Contributor

@leonerd leonerd commented Oct 10, 2024

A possible thought, based on discussions on p5p@ about optimisations around builtin functions.

Currently just emits the default "Modification of read-only value" message. I did attempt to have it say something special in this situation but that involves editing Perll_sv_setsv_flags() in sv.c, one of the hottest paths in the entire interpreter. I didn't think that was especially worth it just for this very rare case.

This is an alternative to #22668

  • This set of changes requires a perldelta entry, and it is included.

@leonerd
Copy link
Contributor Author

leonerd commented Nov 6, 2024

Abandoning this one now as instead we just documented "don't do this".

@leonerd leonerd closed this Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant