1 package Moose::Meta::Method::Accessor::Native::Hash::delete;
8 with 'Moose::Meta::Method::Accessor::Native::Hash::Writer' => {
11 _inline_optimized_set_new_value
17 sub _adds_members { 0 }
19 sub _potential_value {
21 my ($slot_access) = @_;
24 . 'my %potential = %{ (' . $slot_access . ') }; '
25 . '@return = delete @potential{@_}; '
30 sub _inline_optimized_set_new_value {
32 my ($inv, $new, $slot_access) = @_;
34 return '@return = delete @{ (' . $slot_access . ') }{@_};';
39 my ($slot_access) = @_;
41 return 'wantarray ? @return : $return[-1]';