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 break if the functions are replaced
  • Loading branch information
leonerd committed Oct 14, 2024
1 parent 77b7888 commit 6a48150
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 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,14 @@ 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
Various optimisations that apply to many functions in the L<builtin> package
would be broken if the functions are ever replaced or changed, such as by
assignment into glob references. It is suggested not to do this, so that the
optimiser can correctly work out that intention of code which calls these
functions.
=head1 FUNCTIONS
=head2 true
Expand Down

0 comments on commit 6a48150

Please sign in to comment.