[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help: Automake's

From: Akim Demaille
Subject: Re: Help: Automake's
Date: 24 Apr 2001 11:39:28 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley)

>>>>> "Russ" == Russ Allbery <address@hidden> writes:

Russ> You seem to have based this on an older version of Class::Struct
Russ> than what shipped with Perl 5.6.1, 

I was not aware 5.6.1 was released...

Russ> unless you intended to delete the import stuff, and beyond that
Russ> the only change I see is a change from warnings::warn to
Russ> warnings::warnif.  

Hm, that's weird...  Here is what I meant to send (maybe I took the
wrong floppy...)

 perl5/5.005/Class % diff -uw /floppy/
 --- /floppy/   Sat Mar 24 17:50:56 2001
 +++  Sun Mar 25 16:30:39 2001
 @@ -1,12 +1,11 @@
 -package Class::Struct;
 +package Class::Struct2;

  ## See POD after __END__

 -use 5.005_64;
 +use 5.005;

  use strict;
 -use warnings::register;
 +use vars qw(@ISA @EXPORT $VERSION);

  use Carp;

 @@ -168,8 +167,7 @@
      $cnt = 0;
      foreach $name (@methods){
          if ( do { no strict 'refs'; defined &{$class . "::$name"} } ) {
 -            warnings::warn "function '$name' already defined, overrides struct
 accessor method"
 -                if warnings::enabled();
 +            carp "function '$name' already defined, overrides struct accessor 
          else {
              $pre = $pst = $cmt = $sel = '';

Russ> The file that you included won't work with any
Russ> released version of Perl older than 5.6.0; was that the
Russ> intention?

:) :) Definitely not.  What do you mean?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]