[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #46350] Random errors with eval / function / c
From: |
Julien Bect |
Subject: |
[Octave-bug-tracker] [bug #46350] Random errors with eval / function / clear |
Date: |
Sat, 31 Oct 2015 18:53:42 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:39.0) Gecko/20100101 Firefox/39.0 |
URL:
<http://savannah.gnu.org/bugs/?46350>
Summary: Random errors with eval / function / clear
Project: GNU Octave
Submitted by: jbect
Submitted on: sam. 31 oct. 2015 18:53:41 GMT
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
Consider the following code:
eval (["function __test__ ()\n" ...
"HOMOSCEDASTIC_NOISE = true;" ...
"stk_example_kb09;" ...
"endfunction"]); __test__
clear __test__
eval (["function __test__ ()\n" ...
"HOMOSCEDASTIC_NOISE = false;" ...
"stk_example_kb09;" ...
"endfunction"]); __test__
Loading the stk package and running this code (in a script) several times in a
row results in errors of the type:
error: 'HOMOSCEDASTIC_NOISE' undefined near line 60 column 4
error: called from
stk_example_kb09 at line 60 column 1
__test__ at line 2 column 29
toto at line 11 column 18
The variable the triggers the error changes from time (it can be
'HOMOSCEDASTIC_NOISE' undefined near line 60 column 4, 'NOISE_STD_FUNC'
undefined near line 77 column 13, 'zi' undefined near line 78 column 6...).
Once in a while it doesn't fail.
Removing the 'clear' statement in the middle seems to solve the issue,
although I don't understand why.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46350>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #46350] Random errors with eval / function / clear,
Julien Bect <=