Skip to content

Commit bb4c810

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 48972dd commit bb4c810

16 files changed

+411
-331
lines changed

MANIFEST

+1
Original file line numberDiff line numberDiff line change
@@ -6315,6 +6315,7 @@ t/op/dor.t See if defined-or (//) works
63156315
t/op/dump.t See if dump works.
63166316
t/op/each.t See if hash iterators work
63176317
t/op/each_array.t See if array iterators work
6318+
t/op/equ.t See if the equ operator works
63186319
t/op/eval.t See if eval operator works
63196320
t/op/evalbytes.t See if evalbytes operator works
63206321
t/op/exec.t See if exec, system and qx work

gv.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ S_maybe_add_coresub(pTHX_ HV * const stash, GV *gv,
614614
case KEY_catch : case KEY_class :
615615
case KEY_continue: case KEY_cmp : case KEY_defer :
616616
case KEY_do : case KEY_dump : case KEY_else : case KEY_elsif :
617-
case KEY_eq : case KEY_eval : case KEY_field :
617+
case KEY_eq : case KEY_equ : case KEY_eval : case KEY_field :
618618
case KEY_finally:
619619
case KEY_for : case KEY_foreach: case KEY_format: case KEY_ge :
620620
case KEY_goto : case KEY_grep : case KEY_gt :

keywords.c

+10-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)