Skip to content

Commit

Permalink
Initial attempt at defining an equ operator
Browse files Browse the repository at this point in the history
As per PPC0030.

Currently only defines the stringy version, not the numerical version.

TODO: Currently lacks any attempt at documentation or perldelta.

TODO: Also lacks any consideration on how an `equ` operator would
  interact with `use overload`. Further thought is required here.

fixup with magic
  • Loading branch information
leonerd committed Jan 24, 2025
1 parent 48972dd commit bb4c810
Show file tree
Hide file tree
Showing 16 changed files with 411 additions and 331 deletions.
1 change: 1 addition & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -6315,6 +6315,7 @@ t/op/dor.t See if defined-or (//) works
t/op/dump.t See if dump works.
t/op/each.t See if hash iterators work
t/op/each_array.t See if array iterators work
t/op/equ.t See if the equ operator works
t/op/eval.t See if eval operator works
t/op/evalbytes.t See if evalbytes operator works
t/op/exec.t See if exec, system and qx work
Expand Down
2 changes: 1 addition & 1 deletion gv.c
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ S_maybe_add_coresub(pTHX_ HV * const stash, GV *gv,
case KEY_catch : case KEY_class :
case KEY_continue: case KEY_cmp : case KEY_defer :
case KEY_do : case KEY_dump : case KEY_else : case KEY_elsif :
case KEY_eq : case KEY_eval : case KEY_field :
case KEY_eq : case KEY_equ : case KEY_eval : case KEY_field :
case KEY_finally:
case KEY_for : case KEY_foreach: case KEY_format: case KEY_ge :
case KEY_goto : case KEY_grep : case KEY_gt :
Expand Down
12 changes: 10 additions & 2 deletions keywords.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bb4c810

Please sign in to comment.