Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Does there exist a CPAN module for lazily initialized variables?

by lachoy (Parson)
on Jul 14, 2004 at 18:52 UTC ( #374390=note: print w/ replies, xml ) Need Help??


in reply to Does there exist a CPAN module for lazily initialized variables?

Object::Realize::Later does not explicitly deal with tied variables but seems to be flexible enough to do what you want.

Chris
M-x auto-bs-mode


Comment on Re: Does there exist a CPAN module for lazily initialized variables?
Replies are listed 'Best First'.
Re^2: Does there exist a CPAN module for lazily initialized variables?
by jryan (Vicar) on Jul 14, 2004 at 19:04 UTC

    It almost seems... *too* flexible. :) My whole jive is that I don't want to go through the trouble of creating these Singleton classes, which it seems like I'd have to do with Object::Realize::Later anyways. Thanks for the tip, though; with my extremely inept searching abilities, I don't think I would have found Object::Realize::Later on my own.

    Update: Another thought: I might be able to use Object::Realize::Later to create only a small single class that handles the automatic initialization... although that also might be more trouble than its worth...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://374390]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2015-08-03 11:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (30 votes), past polls