[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Crash with inline
From: |
David Bateman |
Subject: |
Re: Crash with inline |
Date: |
Thu, 16 Sep 2004 18:44:56 +0200 |
User-agent: |
Mutt/1.4.1i |
This made me check how matlab/octave handle different versions
of the function when changing directory. Consider the matlab
example
>> test(1);
>> which test
/home/dbateman/tmp/test.m
>> cd ..
>> which test
/home/dbateman/test.m
Doing the same in octave gives
octaveL1> test(1);
octave:2> which test
test is the user-defined function from the file
/home/dbateman/tmp/test.m
octave:3> cd ..
octave:4> which test
test is the user-defined function from the file
/home/dbateman/tmp/test.m
So it seems that octave keeps the compiled version from its symbol
table even after the directory change, while matlab picks up the
fact that there is a new version in the loadpath. What I suspect
that matlab does is that when doing a cd it invalidates all of the
functions in its symbol table that are located elsewhere it its
loadpath after the directory change...
Should octave do the same thing?
Regards
David
--
David Bateman address@hidden
Motorola CRM +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax)
91193 Gif-Sur-Yvette FRANCE
The information contained in this communication has been classified as:
[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
Re: Crash with inline, John W. Eaton, 2004/09/16
Re: Crash with inline, David Bateman, 2004/09/16