Re: stupid beginner question

[prev] [thread] [next] [Date index for 2005/06/28]

From: William Ross
Subject: Re: stupid beginner question
Date: 10:21 on 28 Jun 2005
On 28 Jun 2005, at 10:24, Hartmaier Alexander wrote:


> So far so good, now the first things start to work.
> What I want to know now is:
> If I use e.g. NAC::ScanInterface in NAC::Device do I have to 'use
> NAC::ScanInterface;' in NAC/Device.pm?
>

This is usually done for you: when you declare a relationship, cdbi  
will take care of loading the foreign class. You only need to  
explicitly 'use NAC::ScanInterface' when there's no relationship and  
your code includes a direct reference to NAC::ScanInterface->something.

This hardly ever happens, and if you find that need to explicitly use  
another data class, that could be taken as a warning that either your  
relationships are slightly off or you should be moving functionality  
into the base class.

imho.

will

ps. but I explicitly load everything up front, in a factory class, so  
I could be way off.

stupid beginner question
Hartmaier Alexander 13:47 on 24 Jun 2005

Re: stupid beginner question
Matt S Trout 18:26 on 24 Jun 2005

Re: stupid beginner question
Hartmaier Alexander 07:11 on 27 Jun 2005

Re: stupid beginner question
William Ross 09:35 on 27 Jun 2005

Re: stupid beginner question
Hartmaier Alexander 09:46 on 27 Jun 2005

Re: stupid beginner question
Hartmaier Alexander 09:24 on 28 Jun 2005

Re: stupid beginner question
William Ross 10:21 on 28 Jun 2005

Re: stupid beginner question
Hartmaier Alexander 16:51 on 28 Jun 2005

Re: stupid beginner question
Rob Kinyon 19:59 on 28 Jun 2005

Generated at 16:35 on 28 Jul 2005 by mariachi v0.52