My confusion about XS extends to its relationship with AUTOLOAD, so my
apologies if this question is off-topic wrt Inline...

Prior to moving to Inline, I used this AUTOLOAD and bootstrap:

-----------------
sub AUTOLOAD {
    # This AUTOLOAD is used to 'autoload' constants from the constant()
    # XS function.  If a constant is not found then control is passed
    # to the AUTOLOAD in AutoLoader.

    my $constname;
    ($constname = $AUTOLOAD) =~ s/.*:://;
    croak "& not defined" if $constname eq 'constant';
    my $val = constant($constname, @_ ? $_[0] : 0);
    if ($! != 0) {
      if ($! =~ /Invalid/) {
        $AutoLoader::AUTOLOAD = $AUTOLOAD;
        goto &AutoLoader::AUTOLOAD;
      }
      else
      {
        croak "Your vendor has not defined Mail::Folder::FastReader macro $constname";
      }
    }
    no strict 'refs';
    *$AUTOLOAD = sub () { $val };
    goto &$AUTOLOAD;
}

bootstrap Mail::Folder::FastReader $VERSION;
-----------------

I thought this stuff would be auto-generated by Inline (as implied in the
Inline documentation), so I removed it when I switched to Inline.

However, when running "make test" for my module, I get:

  Use of inherited AUTOLOAD for non-method Mail::Folder::FastReader::read_email() is 
deprecated at t/simple.t line 39.
  Can't locate auto/Mail/Folder/FastReader/read_email.al in @INC

Attached is my module distribution, if that helps.

Regards,
David

_________________________________________________________________________
David Coppit - Ph.D. Candidate         [EMAIL PROTECTED]
The University of Virginia             http://coppit.org/
    "Yes," said Piglet, "Rabbit has Brain." There was a long silence.
"I suppose," said Pooh, "that that's why he never understands anything."

Mail-Folder-FastReader-0.10.tar.gz

Reply via email to