local() not working?



Hi all,

Maybe I am missing something, but shouldn't the following code leave 'var' undefined?
It works using square brackets instead of local:

var;
(%o1) var

func(arg) := block(
      local(var),
      var: 7,
      return(42)
)$

func(100);
(%o3) 42

var;
(%o4) 7

build_info();

Maxima version: 5.21.1
Maxima build date: 8:13 4/26/2010
Host type: i686-pc-mingw32
Lisp implementation type: GNU Common Lisp (GCL)
Lisp implementation version: GCL 2.6.8

Regards,
James