'evalin' weirdness

Søren Hauberg soren at hauberg.org
Fri Jan 23 07:55:05 CST 2009


Hi,

I'm in the process of fixing the bug Ben reported about 'type' in the
new implementation of the help system. Here, I cannot fix this as I'm
affected with a bug in 'evalin'. The following function

  function bla ()
    name = 'test';
    evalin ('caller', '1+2')
    disp (name)
  endfunction

Fails with the error 

  error: `name' undefined near line 4 column 9

It seems that somehow the 'evalin' call removes the 'name' variable.

Søren




More information about the Bug-octave mailing list