This queue is for tickets about the Devel-Leak-Object CPAN distribution.

Report information
The Basics
Id:
34940
Status:
new
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
cpan [...] tobias-tacke.de
Cc:
AdminCc:

BugTracker
Severity:
Normal
Broken in:
0.92
Fixed in:
(no value)



Subject: Different behavior of CORE::bless and the overwritten version
Your overwritten bless method behaves a little different like te original one. It seems to be that CORE::bless has a prototype like (@;$) because if you say bless(({},2,3,4), __PACKAGE__); it croaks with: "can't bless non reference...". If you say bless({},2,3,__PACKAGE) it croaks with "Too many arguments...". I dont have any suggestion to solve this, because if you add the (@;$) prototype to the new bless method, it doesn't behave in the same way.
From: cpan@tobias-tacke.de
PS: the Prototype of bless is (\@;\@) and you can't emulate this :( see: http://library.n0i.net/programming/perl/articles/fm_prototypes/ A runtime-check it the only working thing. And I don't know what bless() does with the second argumed, when you give them al list. It runs, and the bless() is about the last element in the list, but I don't know anything about side-effects.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.