Ticket #1785: tt1785_final.diff

File tt1785_final.diff, 1.1 KB (added by jkeenan, 4 years ago)

Change 'warn' to 'die' and remove item from DEPRECATION.pod

  • DEPRECATED.pod

     
    143143 
    144144L<https://trac.parrot.org/parrot/ticket/1564> 
    145145 
    146 =item Behavior of Parrot::Pmc2c::PMC::add_method() [eligible in 2.10] 
    147  
    148 Duplicated vtable functions currently generate only a warning; after deadline, 
    149 they will cause a C<die> and failure to build Parrot or any HLL 
    150 using this method. 
    151  
    152 L<http://trac.parrot.org/parrot/ticket/1785> 
    153  
    154146=back 
    155147 
    156148=head1 Opcodes 
  • lib/Parrot/Pmc2c/PMC.pm

     
    7171# methods 
    7272sub add_method { 
    7373    my ( $self, $method ) = @_; 
    74     warn "FATAL ERROR: Duplicated VTABLE function: " . $method->name 
     74    die "FATAL ERROR: Duplicated VTABLE function: " . $method->name 
    7575        if exists $self->{has_method}{$method->name}; 
    7676    $self->{has_method}{ $method->name } = @{ $self->{methods} }; 
    7777    push @{ $self->{methods} }, $method;