Sub-Quote
    
    
  
  
  
view release on metacpan or search on metacpan
    else {
      overload::constant 'integer', sub { $_[0] + 1 };
    }
  }
}
TODO: {
  my ($options, $context_sub, $direct_val);
  {
    use BetterNumbers;
    BEGIN { $options = { hints => $^H, hintshash => { %^H } } }
    $direct_val = 10;
    $context_sub = quote_sub(q{ 10 });
  }
  my $options_sub = quote_sub(q{ 10 }, {}, $options);
  is $direct_val, 11,
    'integer overload is working';
  todo_skip "refs in hints hash not yet implemented", 4;
  {
    
  
  
        'hints hash refs from options not broken';
    is $options_val, 11,
      'hints hash refs used from options';
  }
}
TODO: {
  my ($options, $context_sub, $direct_val);
  {
    use BetterNumbers +2;
    BEGIN { $options = { hints => $^H, hintshash => { %^H } } }
    $direct_val = 10;
    $context_sub = quote_sub(q{ 10 });
  }
  my $options_sub = quote_sub(q{ 10 }, {}, $options);
  is $direct_val, 12,
    'closure integer overload is working';
  todo_skip "refs in hints hash not yet implemented", 4;
    
  
  
  
( run in 0.236 second using v1.01-cache-2.11-cpan-a1d94b6210f )