[Dbix-class] Re: RFC: Restrict deflation to blessed objects only?
Jess Robinson
castaway at desert-island.demon.co.uk
Wed Nov 15 19:19:13 GMT 2006
On Sun, 29 Oct 2006, Matt S Trout wrote:
> 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 doesnt deref the reference itself, then it
>> > > would be hard to rely on that behaviour for anything useful,
>> > > in which case Id say you shouldnt 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 wont do anything useful. And
>> if thats the case, then its 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?
I'd almost forgotten this one.. it seems nobody is yelling, so here we go
;)
Jess
More information about the Dbix-class
mailing list