[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Clearing function and method definitions?
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: Clearing function and method definitions? |
Date: |
Wed, 4 Jul 2012 09:06:09 -0400 |
On 3 July 2012 12:38, Barry, Dave (STRT) <address@hidden> wrote:
> You are correct. I have noticed, before this, that modified
> functions don't always load the updated file. I performed the
> example you requested and here are the results.
>
>
> Here is the file I made:
> OExample1.m
> Filestart:
> ## written to test function freshing
>
> display("Inside OExample1");
> ##display("OExample1 has been changed!!");
> :fileend
>
> In this example I started with this file. Results:
> octave:4> OExample1
> Inside OExample1
>
> Then I removed the ## and saved. Results:
> octave:5> OExample1
> Inside OExample1
>
> OExample1 has been changed!!
>
> Then I reinserted the ## and saved. Results:
> octave:6> OExample1
> Inside OExample1
>
> OExample1 has been changed!! <------ Output did not
> reflect current file definition but last one. Without changing the
> file I repeated the command.
>
> octave:7> OExample1
> Inside OExample1 <------ Output now
> reflects current file definition.
>
> If I repeat this I find that the file definition is not updated
> until after the script is run.
This seems like a bug:
http://www.gnu.org/software/octave/bugs.html
- Jordi G. H.