I noticed that Matlab's documentation for eval no longer mentions the form
eval (try_code, catch_code)
to evaluate the "catch_code" if "try_code" throws an error. Should we
also deprecate this feature in Octave?
Does Matlab restrict the code to be evaluated to be a single expression,
or are statements and multiple expressions allowed? For example, what
happens for the following in current Matlab versions?
eval ('x = 2+2')
eval ('1+1, pi')
eval ('for i = 1:3, i, end')
In Octave, all of these work. If Matlab restricts the argument of eval
to be a single expression (not a statement) then should we also impose
that limitation? It might simplify the implementation somewhat if we
did not have to handle arbitrary code.
Thanks,
jwe