develooper Front page | perl.libwin32 | Postings from December 2017

[rt.cpan.org #123906] AUDOLOAD constants have unexpected behaviour

From:
Henrik Pauli via RT
Date:
December 18, 2017 09:12
Subject:
[rt.cpan.org #123906] AUDOLOAD constants have unexpected behaviour
Message ID:
rt-4.0.18-2131-1513588325-96.123906-15-0@rt.cpan.org
Mon Dec 18 04:12:05 2017: Request 123906 was acted upon.
Transaction: Ticket created by ralesk
       Queue: Win32-Sound
     Subject: AUDOLOAD constants have unexpected behaviour
   Broken in: 0.49
    Severity: (no value)
       Owner: Nobody
  Requestors: henrik.pauli@gmail.com
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=123906 >


I ran into an issue while having a brain fart and misusing the binary operators in our software — wrote about it in http://www.perlmonks.org/?node_id=1205583

While indeed the & operator shouldn't be used between these flags, I think this is a bit of a problem.

Is it necessary to use AUTOLOAD or could these constants be made proper use constant stuff with a void prototype instead?



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About