Skip Menu |

This queue is for tickets about the Catalyst-Runtime CPAN distribution.

Report information
The Basics
Id: 58973
Status: rejected
Priority: 0/
Queue: Catalyst-Runtime

People
Owner: Nobody in particular
Requestors: john.imrie [...] adestra.com
Cc:
AdminCc:

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



Subject: Documentation error?
Date: Wed, 30 Jun 2010 09:21:04 +0100
To: bug-Catalyst-Runtime [...] rt.cpan.org
From: John Imrie <john.imrie [...] adestra.com>
The documentation in Catalyst::Response claims you can pass any object to Catalyst::Response->build that implements read() the same way as IO::Handle. If you look at the code in Catalyst::Engine::finalize_body() you will see that when $body is blessed and can read, Catalyst calls Perl's internal read operator and not the method on $body. Either the documentation in Catalyst::Response is incorrect or the code in Catalyst::Engine is. John Imrie
Is there a real problem here? read is called as an indirect object method on blessed handle like operators, and as a built-in on globs, and everything works? This could be explained in the docs, but 'what to pass', rather than 'what it does' seems more topical. Do you have examples of anything this causes not to work with?