[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #46281] newly defined private functions are in
From: |
Tasos Papastylianou |
Subject: |
[Octave-bug-tracker] [bug #46281] newly defined private functions are inaccessible until restart of octave session |
Date: |
Sat, 24 Oct 2015 13:19:40 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0 |
URL:
<http://savannah.gnu.org/bugs/?46281>
Summary: newly defined private functions are inaccessible
until restart of octave session
Project: GNU Octave
Submitted by: tpapastylianou
Submitted on: Sat 24 Oct 2015 13:19:39 GMT
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Other
Status: None
Assigned to: None
Originator Name: Tasos Papastylianou <poacheR>
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
Code to reproduce issue from terminal:
>> f = fopen('./foo.m','wt');
>> fdisp (f,'function foo');
>> fdisp (f,' baz;');
>> fdisp (f,'endfunction');
>> fclose(f);
>> mkdir private;
>> f = fopen('./private/baz.m','wt');
>> fdisp (f,'function baz');
>> fdisp (f,' disp(''Hello from private baz'');');
>> fdisp (f,'endfunction');
>> fclose(f);
>> foo
error: 'baz' undefined near line 2 column 3
error: called from
foo at line 2 column 3
>> exit
% restart octave (in same directory)
>> foo
Hello from private baz
A similar bug exists where newly defined functions within a namespace are
inaccessible from that namespace until a restart of an octave session. This is
likely the same issue under the hood, but I will submit a separate bug report
for this and link to it above.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46281>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #46281] newly defined private functions are inaccessible until restart of octave session,
Tasos Papastylianou <=
- [Octave-bug-tracker] [bug #46281] newly defined private functions are inaccessible until restart of octave session, Tasos Papastylianou, 2015/10/24
- [Octave-bug-tracker] [bug #46281] newly defined private functions are inaccessible until restart of octave session, Pantxo Diribarne, 2015/10/24
- [Octave-bug-tracker] [bug #46281] newly defined private functions are inaccessible until restart of octave session, Doug Stewart, 2015/10/24
- [Octave-bug-tracker] [bug #46281] newly defined private functions are inaccessible until restart of octave session, Stefan Miereis, 2015/10/24
- [Octave-bug-tracker] [bug #46281] newly defined private functions are inaccessible until restart of octave session, Tasos Papastylianou, 2015/10/24
- [Octave-bug-tracker] [bug #46281] newly defined private functions are inaccessible until restart of octave session, Doug Stewart, 2015/10/24
- [Octave-bug-tracker] [bug #46281] newly defined private functions are inaccessible until restart of octave session, Pantxo Diribarne, 2015/10/24
- [Octave-bug-tracker] [bug #46281] newly defined private functions are inaccessible until restart of octave session, Tasos Papastylianou, 2015/10/24
- [Octave-bug-tracker] [bug #46281] newly defined private functions are inaccessible until restart of octave session, Doug Stewart, 2015/10/24
- [Octave-bug-tracker] [bug #46281] newly defined private functions are inaccessible until restart of octave session, Pantxo Diribarne, 2015/10/25