From: nobu.nokada@... Date: 2003-01-27T00:44:36+09:00 Subject: Re: cascading configuration variables Hi, At Mon, 27 Jan 2003 00:15:38 +0900, Wilbert Berendsen wrote: > I would like the variables with their values to be accessible as constants, > because I think that is faster than hash lookups, and it looks elegant, > because they will get referenced often from other script snippets that get > loaded after the config is read. Retrieving a constant needs to traverse the ancestors of that module, it isn't always faster than hash access. I agree it looks simple/elegant. > I figure that I can use modules to carry constants. Eg. > > module Conf > include load ("userdefaults.conf", true) > include load ("systemdefaults.conf", true) > end I'm sorry to confuse you, Kernel#load never return created wrapper modules. I wrote `If it were return', it was just a suggestion to modify. Use module_eval as you wrote, or module_load I wrote, instead. -- Nobu Nakada