home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / Share / Editores / Perl5 / perl / lib / site / auto / Tk / Widget / Inherit.al < prev    next >
Encoding:
Text File  |  1997-08-10  |  403 b   |  17 lines

  1. # NOTE: Derived from blib\lib\Tk\Widget.pm.  Changes made here will be lost.
  2. package Tk::Widget;
  3.  
  4. sub Inherit
  5. {
  6.  carp "Inherit is deprecated - use SUPER::";
  7.  my $w = shift;
  8.  my $method = shift;
  9.  my ($class) = caller;
  10.  *{$class.'::Inherit::ISA'} = \@{$class.'::ISA'} unless (defined @{$class.'::Inherit::ISA'});
  11.  $class .= '::Inherit::';
  12.  $class .= $method;
  13.  return $w->$class(@_);
  14. }
  15.  
  16. 1;
  17.