Skip Menu |

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

Report information
The Basics
Id: 34940
Status: new
Priority: 0/
Queue: Devel-Leak-Object

Owner: Nobody in particular
Requestors: cpan [...]

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

Subject: Different behavior of CORE::bless and the overwritten version
Download (untitled) / with headers
text/plain 462b
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 [...]
Download (untitled) / with headers
text/plain 382b
PS: the Prototype of bless is (\@;\@) and you can't emulate this :( see: 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 is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to