[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#727078: ITP: libobject-container-perl -- simple object container



On Tue, Oct 22, 2013 at 08:57:50PM +0300, Marius Gavrilescu wrote:
> Justin B Rye <justin.byam.rye@gmail.com> writes:
> 
> > I'd love to be able to provide a version that's in grammatical
> > English, but I don't understand what it's trying to say well enough to
> > make it say it.
> 
> And this is why I copied upstream's description instead of trying to
> write an english one. Perhaps it would be easier to ask
> debian-japanese@l.d.o to translate [0].
> 
> That being said, I read the rest of the documentation and the code
> examples and it looks like this module is a glorified hash from class
> names to objects of that class. If you want to have a single instance
> of, for example, WWW::Mechanize in many different files/functions/etc,
> you do C<Object::Container->register('WWW::Mechanize')> somewhere and then
> you can retrieve that instance of WWW::Mechanize from anywhere else with
> C<Object::Container->get('WWW::Mechanize')>.

Now THAT is a better explanation, why not put that in the long
description? It also doesn't use that horrible term 'singletonize' :)

-- 
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing." --- Malcolm X


Reply to: