`clear variable` does not work ?
Sergei Steshenko
sergstesh at yahoo.com
Sat Feb 2 08:34:12 CST 2008
--- "John W. Eaton" <jwe at bevo.che.wisc.edu> wrote:
> On 1-Feb-2008, Sergei Steshenko wrote:
>
> | Actually, it looks even more complicated now.
> |
> | What does "The local variable X is linked to the global variable X" exactly mean ?
> |
> | If in a given scope there are two entities named "X", how does one differentiate
> | between them ?
>
> I described the way global variables work in Octave as simply as I
> think I can. Global variables work this way because they have to work
> in a way that is compatible with Matlab. Sorry if you are unable to
> follow.
>
> | In Perl, for example,
>
> The way Perl works is somewhat irrelevant here, no?
>
> jwe
>
The key sentence is compatibility with Matlab.
Regarding inability to follow - the word "link(ed)" has different meanings
in the contexts of, say, symbolic links to a file <-> linking object files into
an executable.
I am unfamiliar with the "link(ed)" in the context of global <-> local variable
with the same name, and I gave the Perl example to explain the situation I'm
familiar with.
I do not have Matlab, and I do not have experience in it, that's why the concept
of linking global and local variable with the same name is unknown to me.
Thanks,
Sergei.
Applications From Scratch: http://appsfromscratch.berlios.de/
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
More information about the Help-octave
mailing list