[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
clear all inside function
From: |
John W. Eaton |
Subject: |
clear all inside function |
Date: |
Tue, 9 Jun 2009 11:12:15 -0400 |
What is supposed to happen with "clear all" inside a function?
Given the claim that the program posted here
https://www-old.cae.wisc.edu/pipermail/help-octave/2009-June/014713.html
works in Matlab, it seems it should not be clearing functions. I
guess this works in 3.0.x, but with the current sources, and a .m file
containing the following
function main ()
clear all
sub
end
function sub ()
'this is sub'
end
I see
octave:2> main
error: `sub' undefined near line 3 column 3
error: called from:
error: /scratch/jwe/build/octave/main.m at line 3, column 3
jwe
- clear all inside function,
John W. Eaton <=