Wed 01 Jun 2011 07:51:56 PM UTC, original submission:
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
|