Re: YAQAGV (Yet Another Question About Global Variables)

2011-08-23 Thread Steven W. Orr
On 8/23/2011 9:52 AM, Greg Wooledge wrote: On Tue, Aug 23, 2011 at 09:42:21AM -0400, Steven W. Orr wrote: Since require is a function, any variables that are declared in a required module which declare global variables using typeset then become local variables to the require function. Then after

Re: YAQAGV (Yet Another Question About Global Variables)

2011-08-23 Thread Pierre Gaston
On Tue, Aug 23, 2011 at 4:42 PM, Steven W. Orr wrote: > I made a decision to implement the require module written by Noah Friedman > that comes in the examples part of the bash distro. This is the trick for > implementing the provide / require functionality of features. > > I love it. It works gre

Re: YAQAGV (Yet Another Question About Global Variables)

2011-08-23 Thread Greg Wooledge
On Tue, Aug 23, 2011 at 09:42:21AM -0400, Steven W. Orr wrote: > Since require is a function, any variables that > are declared in a required module which declare global variables using > typeset then become local variables to the require function. Then after the > modules are loaded, the variab

YAQAGV (Yet Another Question About Global Variables)

2011-08-23 Thread Steven W. Orr
I made a decision to implement the require module written by Noah Friedman that comes in the examples part of the bash distro. This is the trick for implementing the provide / require functionality of features. I love it. It works great. I just ran into one little snag. Not a show stopper, but