summaryrefslogtreecommitdiff
path: root/lib/overloading.t
Commit message (Collapse)AuthorAgeFilesLines
* [perl #108780] Make /foo$qr/ work under ‘no overloading’Father Chrysostomos2012-01-301-1/+11
| | | | | | | This changes the code in pp_regcomp to use the underlying REGEXP instead of the reference to it, when concatenating pieces to mark a larger regular expression. This makes /foo$qr/ work even under ‘no overloading’. It stopped working with commit a75c6ed6b.
* [perl #108780] Make ‘no overloading’ work with qr//Father Chrysostomos2012-01-241-1/+14
| | | | | | | | | | | | | | Traditionally, overload::StrVal(qr//) has returned Regexp=SCALAR(0xc0ffee), and later Regexp=REGEXP(0xc0c0a) when regexps were made into first-class SVs. When the overloading pragma was added in 5.10.1, qr// things were not accounted for, so they would still stringify as (?-xism:) even with ‘no overloading’ (or as (?^:) under 5.14). This commit makes the overloading pragma work with qr// things, so that they stringify the same way as overload::StrVal; i.e., as Regexp=REGEXP(0xbe600d).
* Convert gmtime.t, localtime.t and overloading.t to Test::More.Nicholas Clark2010-07-011-9/+1
|
* Add a new test for overloading.pmRafael Garcia-Suarez2009-01-021-1/+16
| | | | | This one overloads "cos", which is currently at the end of the overload table, so we properly test the bitstring stored in %^H
* 'overloading' pragmaYuval Kogman2009-01-021-0/+86