Newbie question about scoping rules



Michel Van den Bergh <michel.vandenbergh <at> uhasselt.be> writes:

> 
> Sorry for all the questions but maxima behaves quite differently from
> the languages I am used to (python, c)
> 

s[n]:=n^2;
g(s):=block([i],print(s[4])); 
g(cat);

  it gives 16.