ingydotnet / boolean-pm

Boolean Type Support for Perl
7 stars 5 forks source link

Add CLONE method for thread-safety #14

Closed dagolden closed 8 years ago

dagolden commented 9 years ago

Without CLONE, the refaddrs of the singleton true/false values change, but the cached addresses don't. This makes isTrue(true) false in a thread, and so on. The CLONE fixes up the refaddrs so checks work as expected in a thread.

perlpunk commented 8 years ago

Applied. Released. Thanks!