Question: global prarmeter NOT working?

Hi,

I remember using 'global' in the procedure as a global parameter,

however, it's not working...

 

> my:=proc(n::posint)
> global t;
> t:=array([    
>           n,n-1,n-2
>         ]);
> end proc:my(5);

                              [5, 4, 3]

> t;
                               t

 

should 't' now be the array [5,4,3]????

 

Thanks.

casper

Please Wait...