[Catalyst] Attribute::Handlers wont work in own classes under catalyst

Matt S Trout dbix-class at trout.me.uk
Mon Sep 3 20:02:03 GMT 2007


On Thu, Aug 30, 2007 at 11:54:10AM +0200, Felix Antonius Wilhelm Ostmann wrote:
> i "found" this bug ... Attribute::Handles has a CHECK {} block ... and 
> under catalyst this block wont be executed ... but Attribute::Handlers 
> need that ... what is to do?

CHECK and INIT blocks don't work properly.

Any code that uses them will randomly break in dynamic loading environments
like Catalyst.

Please don't file a bug report for this, perl 5.10 introduces a UNITCHECK
block type to solve exactly this problem; we can't change the interpreter :)

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/                    http://www.shadowcat.co.uk/ 



More information about the Catalyst mailing list