Skip to content

Commit 36f4cc0

Browse files
committed
Initial attempt at defining an equ operator
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
1 parent 9d37720 commit 36f4cc0

File tree

16 files changed

+414
-334
lines changed

16 files changed

+414
-334
lines changed

MANIFEST

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6331,6 +6331,7 @@ t/op/dor.t See if defined-or (//) works
63316331
t/op/dump.t See if dump works.
63326332
t/op/each.t See if hash iterators work
63336333
t/op/each_array.t See if array iterators work
6334+
t/op/equ.t See if the equ operator works
63346335
t/op/eval.t See if eval operator works
63356336
t/op/evalbytes.t See if evalbytes operator works
63366337
t/op/exec.t See if exec, system and qx work

gv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ S_maybe_add_coresub(pTHX_ HV * const stash, GV *gv,
619619
case KEY_catch : case KEY_class :
620620
case KEY_cmp : case KEY_default : case KEY_defer :
621621
case KEY_do : case KEY_dump : case KEY_else : case KEY_elsif :
622-
case KEY_eq : case KEY_eval : case KEY_field :
622+
case KEY_eq : case KEY_equ : case KEY_eval : case KEY_field :
623623
case KEY_finally:
624624
case KEY_for : case KEY_foreach: case KEY_format: case KEY_ge :
625625
case KEY_given : case KEY_goto : case KEY_grep : case KEY_gt :

keywords.c

Lines changed: 10 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)