summaryrefslogtreecommitdiff
path: root/lib/builtin.t
Commit message (Collapse)AuthorAgeFilesLines
* Description spelling should match function spellingJames E Keenan2022-07-201-15/+15
|
* Tests for prototypes of 'builtin::*' functionsJames E Keenan2022-07-201-0/+20
|
* Add builtin function `export_lexically()`Paul "LeoNerd" Evans2022-07-151-0/+35
| | | | As per RFC 0020
* Add builtin::is_taintedJames Raspass2022-07-051-8/+24
| | | | | Also tweak the implementation of the other two boolean builtins (is_bool & is_weak) to be slightly more efficient.
* Initial implementation and unit-tests of created_as_{string,number}Paul "LeoNerd" Evans2022-04-011-0/+67
|
* Add builtin::trim()Karl Williamson2022-03-191-0/+58
| | | | Most of this code came from Paul Evans and Scott Chief Baker
* An initial implementation of builtin::indexedPaul "LeoNerd" Evans2022-03-141-0/+43
| | | | * Implementation, unit tests, documentation
* Rename is{bool,weak} to is_{bool,weak}Paul "LeoNerd" Evans2022-03-071-18/+18
|
* Fix unit tests for experimental::builtin warningsPaul "LeoNerd" Evans2022-01-251-0/+1
|
* Add ceil & floor to builtinJames Raspass2022-01-241-0/+27
|
* Give blessed() the same TRUEBOOL optimisation that ref() has in boolean contextsPaul "LeoNerd" Evans2021-12-081-0/+6
|
* Add builtin::blessed, refaddr and reftypePaul "LeoNerd" Evans2021-12-081-1/+19
|
* Test equivalence of 'true' and 'false' to negated statementsJames E Keenan2021-12-071-0/+12
| | | | | | | | | The documentation for lib/builtin.pm asserts that 'true' is equivalent to !!1 or !0, and that false is equivalent to !!0 or !1. Demonstrate that this is so. Per review by Paul Evans in https://github.com/Perl/perl5/pull/19252, we'll use cmp_ok() rather than is() and test for each of 'eq' and '=='.
* Add builtin:: funcs for handling weakrefsPaul "LeoNerd" Evans2021-12-041-0/+20
| | | | | Also, ensure that B::Deparse understands the OA_TARGMY optimisation of OP_ISBOOL
* Improvements to OP_ISBOOLPaul "LeoNerd" Evans2021-12-031-0/+17
| | | | | * Apply OA_RETSCALAR, OA_TARGLEX and OA_FOLDCONST flags * Handle both 'get' and 'set' magic
* Add a builtin:: namespace, with true/false/isboolPaul "LeoNerd" Evans2021-11-291-0/+78
This finishes the perl-visible API required for RFC 0008 https://github.com/Perl/RFCs/blob/master/rfcs/rfc0008.md It also begins the "builtin::" namespace of RFC 0009 https://github.com/Perl/RFCs/blob/master/rfcs/rfc0009.md