[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33456] Function handles save()ed with "-binar
From: |
Olaf Till |
Subject: |
[Octave-bug-tracker] [bug #33456] Function handles save()ed with "-binary" can't always be re-load()ed |
Date: |
Wed, 01 Jun 2011 19:51:57 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110429 Iceweasel/3.5.16 (like Firefox/3.5.16) |
URL:
<http://savannah.gnu.org/bugs/?33456>
Summary: Function handles save()ed with "-binary" can't
always be re-load()ed
Project: GNU Octave
Submitted by: i7tiol
Submitted on: Wed 01 Jun 2011 07:51:56 PM GMT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Other
Status: None
Assigned to: None
Originator Name: Olaf Till
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
Release: stable branch, revision 5bf8af73fc34 of 01/06/2011 17:53
Description: Function handles save()ed with "-binary" can't always be
re-load()ed.
Repeat by:
octave:1> a = @ sin
a = @sin
octave:2> save ("-binary", "testdata.dat", "a")
octave:3> clear a
octave:4> load ("testdata.dat")
octave:5> a
error: `a' undefined near line 5 column 1
Note that it also doesn't work if the handle is a structure field:
octave:5> a.b = @ sin
a =
scalar structure containing the fields:
b = @sin
octave:6> save ("-binary", "testdata.dat", "a")
octave:7> clear a
octave:8> load ("testdata.dat")
octave:9> a
error: `a' undefined near line 9 column 1
But it does work if there is a different structure field (no handle) present:
octave:9> a.b = @ sin
a =
scalar structure containing the fields:
b = @sin
octave:10> a.c = 1
a =
scalar structure containing the fields:
b = @sin
c = 1
octave:11> save ("-binary", "testdata.dat", "a")
octave:12> clear a
octave:13> load ("testdata.dat")
octave:14> a
a =
scalar structure containing the fields:
b = @sin
c = 1
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33456>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #33456] Function handles save()ed with "-binary" can't always be re-load()ed,
Olaf Till <=