[rt.cpan.org #123906] AUDOLOAD constants have unexpected behaviour
[email protected] ("Henrik Pauli via RT") Mon, 18 Dec 2017 04:12:05 -0500
| Newsgroups | perl.libwin32 |
|---|---|
| Message-ID | <[email protected]> |
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: [email protected]
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?