Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the "modification of read-only value" errors from non-threaded Pe…
…rls. Its like this. For some reason lost to the mists of time, bless will not bless a reference to a read only value. So bless \"foo", $class isn't supposed to work. This is just what our meta objects do. For some unknown reason, this doesn't trip when threads are turned on. Possibly something to do with @_ magic. The work around is to take a reference to the reference. Its stupid and probably slow. A better thing to do might be to take advantage of field hashes to store the meta object instead of recreating it every time.
- Loading branch information
Showing
4 changed files
with
21 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters