in reply to Re: Pragma (more) like Java's 'import'?
in thread Pragma (more) like Java's 'import'?

Firstly, if the Module in question is a OO style module, then the only time you need to use the full module name is when you instanciate it
Not necessarily. The constructor Foo::Bar->new is just one example of a class method as opposed to an object method.

I'm not familiar with Bricolage, so I don't know if this is true in this case, but there may be several class methods, which are concerned with behaviour of the whole class and all objects in it.

I've also seen more than one type of constructor used in the same class, e.g. Foo::Bar->lookup('quux.db') which returns a whole list's worth of objects.

My $0.02

--rinceWind

Replies are listed 'Best First'.
Re: Re: Re: Pragma (more) like Java's 'import'?
by BrowserUk (Patriarch) on May 12, 2003 at 12:45 UTC

    I think I dealt with Class Methods when I said?

    Where modules have procedural interfaces (or class methods), ...


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller