[Dbix-class] Re: RFC: Restrict deflation to blessed objects only?

Matt S Trout dbix-class at trout.me.uk
Sun Oct 29 04:38:49 GMT 2006


A. Pagaltzis wrote:
> * Jess Robinson <castaway at desert-island.demon.co.uk> [2006-10-28 23:55]:
>> On Sat, 28 Oct 2006, A. Pagaltzis wrote:
>>> * Jess Robinson <castaway at desert-island.demon.co.uk> [2006-10-28 20:55]:
>>>> Is anyone relying on the fact that deflate currently checks
>>>> for is-ref, and not blessed objects?
>>>  
>>> If the deflater doesnÿÿt deref the reference itself, then it
>>> would be hard to rely on that behaviour for anything useful,
>>> in which case Iÿÿd say you shouldnÿÿt even think about it.
>>  
>> ENOPARSE .. Run that by me again?
> 
> If the code that deflates a reference uses it as an object, then
> passing in a non-object reference won’t do anything useful. And
> if thatśs the case, then it’s very unlikely that anyone is
> relying on this behaviour, which means you can go ahead and
> change the behaviour without worrying.

Yes, yes. Here, have a Stating The Obvious 101 diploma.

In the meantime, we were asking if anybody was using a deflator that accepts a 
scalarref (and hence surely doesn't use it as an object) ?

Anybody? Bueller?

-- 
      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the DBIx-Class mailing list