develooper Front page | perl.perl6.language | Postings from March 2005

Re: Config Variables

Thread Previous | Thread Next
Larry Wall
March 3, 2005 16:09
Re: Config Variables
Message ID:
On Thu, Mar 03, 2005 at 12:36:00PM -0800, Brian Ingerson wrote:
: At first I was overwhelmed by your reply, but it's soaking in... :)

Er, sorry.  Sometimes I get so excited about the Promised Land that I
forget we're still standing ankle deep in dying tube worms somewhere
out in the middle of the Red Sea seabed watching with interest the
approach of Pharoah's army, and trying to ignore the walls of water
stacked up on each side.

: My goal in the short term is to create an environment where regular
: folks can start writing and installing and sharing Perl6 modules. It's
: a lot of hacky work on various subsystems. And one thing I need is
: config info.

For now a hash is just fine for that, especially if all the info
is being imported from one place.  Maybe we should just lump it all
under %?OS, since that's what a lot of the values are related to at
the moment.  (To a process, everything looks likes an OS anyway.)

: Unfortunately, pugs has no object support yet. It probably will in the
: next week or two. In the meantime I'll just wing it with an eye towards
: the future.

As a kind of cheap no-brainer, maybe throw an alias like

    %*OS ::= %?OS;

in there to encourage people to start thinking about the destinction
between compile-time and run-time, even if the two hash's values are
identical for now.  They would presumably diverge when we have separate

: Thanks for the mind expanding reply.

You're welcome.  Next time don't eat blue sugar cubes from my frig.  :-)


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About