Skip to content

Commit

Permalink
lib/builtin.pm: Document that builtin functions have optimisations wh…
Browse files Browse the repository at this point in the history
…ich may stop working if the functions are replaced
  • Loading branch information
leonerd committed Oct 25, 2024
1 parent 9a9d70c commit a8a74a8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/builtin.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package builtin 0.015;
package builtin 0.016;

use v5.40;

Expand Down Expand Up @@ -106,6 +106,13 @@ The following bundles currently exist:
:5.40 true false weaken unweaken is_weak blessed refaddr reftype
ceil floor is_tainted trim indexed
=head2 Function Optimisations
There are a number of optimisations that apply to functions in the L<builtin>
package. If you replace or override these functions (such as by assignment
into glob references) the optimisations may not take effect. Do so with
caution.
=head1 FUNCTIONS
=head2 true
Expand Down

0 comments on commit a8a74a8

Please sign in to comment.