Click here to get back home

[RFC]Class::Lazy - Yet another lazy object construction module

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
[RFC]Class::Lazy - Yet another lazy object construction module Rintaro 07-30-2007
Posted by Rintaro on July 30, 2007, 4:42 am
Please log in for more thread options


Hi all,

I would like comment from the community about a module I created,
named Class::Lazy.
(Sorry about my bad English but, I'm not a native speaker.)

I put it on:
http://www.fs-output.com/trac/raw-attachment/wiki/ClassLazy/Class-Lazy-0.01_01.tar.gz

Trac development home:
http://www.fs-output.com/trac/wiki/ClassLazy

= NAME =

Class::Lazy

= SYNOPSIS =

use Class::Lazy;
my $thing = Some::Heavy::Class->lazy::new();
# ... any code ... ( construction is postponed ...)
my $res = $thing->some_method(); # constructed now!

= DESCRIPTION =

Class::Lazy is module for lazy object construction.
Only you have to do is prefix "lazy::" to the constructor:

$thing = SomeClass->new();
$lazything = SomeClass->lazy::new();

By doing this, construction is delayed until you call any method on
that.
---

Here are my questions:

* Using "lazy::" namespace is acceptable?
* Please help better documentation X-(

Thanks.

---
Rintaro
http://www.fs-output.com


Similar ThreadsPosted
Name wanted for module in construction March 15, 2006, 6:21 pm
Can't locate loadable object for module June 22, 2005, 12:37 pm
Which perl module to use for object persistence January 31, 2006, 3:22 pm
Can't locate loadable object for module Tk::Event July 15, 2005, 9:15 am
AppConfig: how to reset object? October 1, 2004, 9:20 am
Can't find loadable object November 19, 2004, 1:05 pm
ANNOUNCE: Rose::DB::Object March 21, 2005, 4:24 pm
Can't locate loadable object August 4, 2005, 12:18 am
Set::Object installation Problem October 14, 2006, 6:04 am
Object oriented database February 8, 2008, 10:37 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap