Am Dienstag, 20. Januar 2004 22:04 schrieb Perrin Harkins:
> On Tue, 2004-01-20 at 16:02, Boris Zentner wrote:
> > just to clarify it, I mean it like Perrin but not that stong, I have no
> > problem to load a package to use it. My problem is to load package bar to
> > fill methods for package foo.
>
> When someone passes your handler a live $r object, you shouldn't have to
> load that module to use it, since the code that is passing you $r must
> have already loaded the class in order to make a $r object.  On the
> other hand, if you need to actually call a method like
> Apache::RequestRec->foo() then you should explicitly load that class.

My view is very close. Just one difference, I do not expect that the class is 
already loaded. If I get a object of type $r I have to make sure that I load 
the package of type ref $r myself.

I think of it like a object that is thawed and passed to me. Maybe from 
another computer or out of a database. So I make the use statement. But my 
View is included in Perrin's.  


>
> - Perrin

-- 
Boris

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to