Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Ensure builtin::trim() has ($) prototype | Paul "LeoNerd" Evans | 2022-07-20 | 1 | -1/+1 |
| | |||||
* | Add builtin function `export_lexically()` | Paul "LeoNerd" Evans | 2022-07-15 | 1 | -0/+74 |
| | | | | As per RFC 0020 | ||||
* | Extract the code for performing lexical export out of builtin::import into ↵ | Paul "LeoNerd" Evans | 2022-07-15 | 1 | -12/+36 |
| | | | | helper functions | ||||
* | Add builtin::is_tainted | James Raspass | 2022-07-05 | 1 | -10/+15 |
| | | | | | 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" Evans | 2022-04-01 | 1 | -2/+37 |
| | |||||
* | Add builtin::trim() | Karl Williamson | 2022-03-19 | 1 | -0/+95 |
| | | | | Most of this code came from Paul Evans and Scott Chief Baker | ||||
* | An initial implementation of builtin::indexed | Paul "LeoNerd" Evans | 2022-03-14 | 1 | -0/+52 |
| | | | | * Implementation, unit tests, documentation | ||||
* | Add missing builtin diagnostic to perldiag.pod; rename 'compiletime' to ↵ | Paul "LeoNerd" Evans | 2022-03-14 | 1 | -1/+1 |
| | | | | 'compile time' for consistency | ||||
* | Rename is{bool,weak} to is_{bool,weak} | Paul "LeoNerd" Evans | 2022-03-07 | 1 | -6/+6 |
| | |||||
* | builtin.c: Fix up 730f927 | Karl Williamson | 2022-02-01 | 1 | -2/+3 |
| | | | | That commit got pushed without a needed fix. | ||||
* | builtin.c: Use correct 32bit printing format | Karl Williamson | 2022-02-01 | 1 | -2/+4 |
| | | | | | | | | | | Perl has no convenient way to portably print values that are explicitly 32 bit: I32 and U32. This is because Configure for some platforms makes these longs (even if an int would do) and for others they end up being ints. The best we can do, without other changes, is use IVdf or UVdf and cast the values to IV or UV. | ||||
* | Warn about experimental builtins at runtime as well as compile time | Dagfinn Ilmari Mannsåker | 2022-01-25 | 1 | -6/+17 |
| | | | | For when the functions are called via reference or perl4-style &foo syntax. | ||||
* | Emit experimental::builtin warnings from the builtin function callchecker | Paul "LeoNerd" Evans | 2022-01-25 | 1 | -0/+8 |
| | |||||
* | Add ceil & floor to builtin | James Raspass | 2022-01-24 | 1 | -0/+10 |
| | |||||
* | Add builtin::blessed, refaddr and reftype | Paul "LeoNerd" Evans | 2021-12-08 | 1 | -0/+15 |
| | |||||
* | Add builtin:: funcs for handling weakrefs | Paul "LeoNerd" Evans | 2021-12-04 | 1 | -15/+38 |
| | | | | | Also, ensure that B::Deparse understands the OA_TARGMY optimisation of OP_ISBOOL | ||||
* | Improvements to OP_ISBOOL | Paul "LeoNerd" Evans | 2021-12-03 | 1 | -2/+2 |
| | | | | | * Apply OA_RETSCALAR, OA_TARGLEX and OA_FOLDCONST flags * Handle both 'get' and 'set' magic | ||||
* | Direct optree implementations of builtin:: functions | Paul "LeoNerd" Evans | 2021-12-01 | 1 | -11/+122 |
| | | | | | | Turn builtin::true/false into OP_CONSTs Add a dedicated OP_ISBOOL, make an efficient op version of builtin::isbool() | ||||
* | builtin.c: Fix C++ compilation errors | Dagfinn Ilmari Mannsåker | 2021-11-30 | 1 | -7/+6 |
| | | | | | | | | | C++ does not allow `goto` across initalisations of variables that are in scope at the label, so just get rid of the `goto`. An alternative would be to start a new scope after the first `goto`, so that the variables aren't in scope any more at the label, but I think this is neater. | ||||
* | Add a builtin:: namespace, with true/false/isbool | Paul "LeoNerd" Evans | 2021-11-29 | 1 | -0/+103 |
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 |