1 package Moose::Meta::Method::Accessor::Native::Hash::delete;
8 with 'Moose::Meta::Method::Accessor::Native::Hash::Writer';
10 sub _adds_members { 0 }
12 sub _potential_value {
14 my ($slot_access) = @_;
17 . 'my %potential = %{ (' . $slot_access . ') }; '
18 . '@return = delete @potential{@_}; '
23 sub _inline_optimized_set_new_value {
25 my ($inv, $new, $slot_access) = @_;
27 return '@return = delete @{ (' . $slot_access . ') }{@_};';
32 my ($slot_access) = @_;
34 return 'wantarray ? @return : $return[-1]';