Skip Menu |

This queue is for tickets about the Class-Trait CPAN distribution.

Report information
The Basics
Id: 27500
Status: rejected
Priority: 0/
Queue: Class-Trait

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Does INIT really do what you think it does?
As per our discussion on the dining room table when you were in PDX, the INIT blocks are likely not doing what you think they're doing as compile-time vs run-time is relevant to the module being loaded, not the program as a whole.
On Fri Jun 08 11:48:04 2007, MSCHWERN wrote: Show quoted text
> As per our discussion on the dining room table when you were in PDX, the > INIT blocks are likely not doing what you think they're doing as > compile-time vs run-time is relevant to the module being loaded, not the > program as a whole.
This isn't a bug report and thus is getting rejected. If you can provide me with a very specific use-case where this is a misfeature (preferably with a clear statement of desired behavior), I would welcome it. INIT does what is needed because after the module is loaded and compiled, the INIT block verifies that the trait is applied correctly. There's a problem in persistent environments such as mod_perl, but this is documented and has a workaround listed. Cheers, Ovid