1Revision history for Perl extension Readonly. 2 31.03 2004 April 20 4 - Changed the prototype for Readonly, to make the usage cleaner. 5 Unfortunately, this breaks backwards-compatability for this 6 function. Users of this function who have Perl 5.8 or later 7 will have to change their source code. Also, users of this 8 function who upgrade to perl 5.8+ will have to change their 9 usage. Having discussed this feature change with a number of 10 people, I felt that breaking compatability was worth the gain 11 in simplicity of usage. 12 (Thanks to Damian Conway for the suggestion). 13 - Removed "use warnings" so the module will work in perl 5.005. 14 151.02 2003 May 13 16 - If Readonly::XS is installed, Readonly will use it for 17 making scalars read-only. 18 - Callers are now forbidden to tie variables directly. This 19 prevents sneaky callers from reassigning a variable via 20 tie. 21 - Error messages have been changed to be more like Perl's 22 own "Modification of a read-only value attempted at..." 23 - Catch and return an error if user tries to pass a constant 24 to Readonly::Scalar (eg Readonly::Scalar 'hello', 'goodbye') 25 - Include a simple benchmark script. 26 - Add a few more test cases. You can never have too many. 27 - Add a simple benchmark program. 28 291.01 2003 February 14 30 - Add some checking to prevent reassignment of Readonly variables. 31 - Changed my email address in the docs. 32 331.00 2003 January 7 34 - No code changes. No bugs or suggestions have been reported 35 for six months, so the version number is changing to 1.00. 36 370.07 2002 June 25 38 - Clean up the code somewhat; remove redundancies; delay 39 loading Carp.pm until it's needed. 40 - Fixed the list of EXPORT_OK symbols. 41 420.06 2002 June 16 43 - Add Readonly function, to provide a unified (and shorter) way to 44 create readonly variables. (Thanks to Slaven Rezic for the idea). 45 - Scalar, Array, and Hash now mark entire data structures as Readonly. 46 Added Scalar1, Array1, and Hash1 for shallow Readonly protection. 47 (Thanks to Ernest Lergon for the idea). 48 - Switch to Test::More and Test::Harness. 134 tests now! 49 500.05 2002 March 15 51 - Change name from Constant.pm to Readonly.pm, due to file 52 naming conflict under Windows. 53 - Changed docs to match. 54 - Allow Readonly::Hash to accept a hash reference parameter. 55 - Works better with older versions of Perl. 56 - Add many, many test cases to test.pl. 57 580.04 2002 March 7 59 - Add top-level Scalar, Array, and Hash functions, so callers 60 don't have to tie the variables themselves. 61 620.03 2001 September 9 63 - documentation changes only. 64 650.02 2001 September 9 66 - documentation changes only. 67 680.01 2001 August 30 69 - Constant.pm, original version. 70