From: Dave Rolsky Date: Tue, 17 Mar 2009 15:58:59 +0000 (-0500) Subject: make CMOP::Method::Constructor->initialize_body private X-Git-Tag: 0.80_01~32 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8f7852d8bbcb946bb01f8c4ad8e798b023099962;p=gitmo%2FClass-MOP.git make CMOP::Method::Constructor->initialize_body private --- diff --git a/lib/Class/MOP/Method/Constructor.pm b/lib/Class/MOP/Method/Constructor.pm index ae5a548..6e8337e 100644 --- a/lib/Class/MOP/Method/Constructor.pm +++ b/lib/Class/MOP/Method/Constructor.pm @@ -31,7 +31,7 @@ sub new { # needed weaken($self->{'associated_metaclass'}); - $self->initialize_body; + $self->_initialize_body; return $self; } @@ -74,6 +74,12 @@ sub attributes { ## method sub initialize_body { + warn 'The initialize_body method has been made private.' + . " The public version is deprecated and will be removed in a future release.\n"; + goto &_initialize_body; +} + +sub _initialize_body { my $self = shift; my $method_name = 'generate_constructor_method';