Re: A better way to do this?
On Fri, 25 Feb 2005 14:52:37 -0800, "Brent W. Hughes"
<guest at RapidEuphoria.com> wrote:
<snip>
>This has to copy 10000 elements to make one little change.
obviously unacceptable, but the performance of option two should point
you in the right direction. How about a new include file:
>Here's the other solution:
>--****************************************
>sequence List
>------------------------------------------
global
>procedure Sub2()
> List[900] = 5
>end procedure
>------------------------------------------
global
>procedure Sub1()
> List = repeat(0,10000)
> Sub2()
>end procedure
>------------------------------------------
>Sub1()
>--****************************************
>I don't really like giving List such a wide scope in this way.
Then List is private, but Sub1 & Sub2 are not.
Regards,
Pete
|
Not Categorized, Please Help
|
|