cc: [email protected]
Subject: Re: Re: [ast-users] Is there any way to create a variable with 'file
global' scope?
--------
> Hash: SHA1
>
> Hi,
>
> Thanks for the reply. I was stating to think my post might have gotten
> lost somewhere. :)
>
>
> On 10/14/2010 2:13 PM, Mario DeFazio wrote:
> >
> > I solve the problem using namespace management via a single
> > compound "master" variable in each library.
>
> That is definitely a better way to manage the namespace than my ideas
> so far. Thanks for the suggestion. It does hide the variables better,
> but it doesn't stop (or even make it hard) for misbehaving code to use
> the variables directly (In some cases I'd like to enforce the use of
> getter/setter functions.)
>
> What do people think of adding some way (through typeset or not) to
> specify a 'file' scope?
> Is that too radical a change for KSH93? Is that the type of thing that
> would have to be in some future major version?
>
> -Kyle
There are static variables inside function but this doesn't solve
the namespace problem.
I plan to add
namespace name
{
}
(it is already partially implements).
variables and functions defined in the namespace are namespace specific
and will not intefere with other name spaces.
You can call functions defined in another name space using the name
.namepace_name.function_name
I hope to complete namespaces before the end of this year if I can
find some time.
David Korn
[email protected]
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users