This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
"use overload fallback => 0" should enable overloading [perl #113010]
authorJesse Luehrs <doy@tozt.net>
Fri, 29 Jun 2012 05:38:04 +0000 (00:38 -0500)
committerJesse Luehrs <doy@tozt.net>
Fri, 29 Jun 2012 05:46:57 +0000 (00:46 -0500)
commit386a54892347d3298ba7f1e98f207e36bc4f3424
tree9aa57403efdddc7d93295f6365c7e9a34142ba8f
parentaf41786fe5732d5ec7932b946eec99a695ac6e43
"use overload fallback => 0" should enable overloading [perl #113010]

This makes

  package Foo;
  use overload fallback => 0;

and

  package Bar;
  use overload '+' => \&add, fallback => 0;

behave identically when an operator other than '+' is used.
gv.c
lib/overload.t