[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mimedefang
Subject:    Re: [Mimedefang] mimedefang.pl spilling "Use of inherited AUTOLOAD
From:       Marcus Harnisch <marcus.harnisch () gmx ! net>
Date:       2011-02-20 15:48:42
Message-ID: 87sjvizoyt.fsf () harnisch ! dyndns ! org
[Download RAW message or body]

Jan-Pieter Cornet <johnpc@xs4all.net> writes:

> The 'best' fix is obviously in Unix::Syslog. It shouldn't default to
> the inherited AUTOLOAD (from the DynaLoader). Something like this in
> Unix::Syslog package should catch it:
>
> sub AUTOLOAD {
>     my $constant = $AUTOLOAD;
>     $constant =~ s/.*:://;
>     die "Undefined constant $constant"; # or possibly croak()
> }

I agree, that this should be added. Ideally though, the affected
functions should go into @EXPORT_FAIL it seems. Is it possible to set
@EXPORT_FAIL from within the XS file based on the defines somehow?

Unix::Syslog has been in maintenance mode for over a decade now and I
haven't really spent much time with XS since.

Thanks
Marcus

-- 
note that "property" can also be used as syntactic sugar to reference
a property, breaking the clean design of verilog; [...]

             (seen on http://www.veripool.com/verilog-mode_news.html)
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic