Skip to content

Commit a8a74a8

Browse files
committed
lib/builtin.pm: Document that builtin functions have optimisations which may stop working if the functions are replaced
1 parent 9a9d70c commit a8a74a8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/builtin.pm

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package builtin 0.015;
1+
package builtin 0.016;
22

33
use v5.40;
44

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

0 commit comments

Comments
 (0)