Hi all,
So, I'm trying to fix the infamous "functions in environments" problem
(#1175), and we've got all of the infrastructure in place to fix it
except one piece: We currently have no way to associate a loaded file
with a given environment.
That is, if you say 'load("foo")', and a function is found, we need
some way to know which environment the function was found in.
In investigating this, I found that the current autoloading doesn't
actually support environments other than the default. My first
thought was to support an 'environment' option to the main loading
commands, but as I considered this I wondered whether it might make
more sense to refactor autoloading, given how much other rubyists seem
to hate it.
I don't have a specific idea of how I'd refactor it, mostly because I
don't really know the root of why rubyists hate it so much, other than
that it's different.
Barring any comments, I'll just update the interface methods to
support specifying an environment.
Any comments from the opinionated?
--
The remarkable thing about Shakespeare is that he really is very good,
in spite of all the people who say he is very good. -- Robert Graves
---------------------------------------------------------------------
Luke Kanies -|- http://puppetlabs.com -|- +1(615)594-8199
--
You received this message because you are subscribed to the Google Groups "Puppet
Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en.