[Catalyst] http://www.catalystframework.org/calendar/2008/8

Bill Moseley moseley at hank.org
Fri Dec 12 16:43:15 GMT 2008


On Fri, Dec 12, 2008 at 08:37:25AM -0800, Bill Moseley wrote:
>  sub ACCEPT_CONTEXT {
>      my ($self, $c ) = @_;
>      $self = bless({ %$self,
>                      path_to => $c->path_to(''),
>                  }, ref($self));
>      return $self;
>  }
> 
> Sorry, I'm a bit curious about that code.  Why is that done that way
> instead of simply:

Well, looking at the Moose example I can see that it's to clone the
object.  And DESTROY won't get called, obviously because the ref
count.

Never mind. ;)

-- 
Bill Moseley
moseley at hank.org
Sent from my iMutt




More information about the Catalyst mailing list