[Bugzilla] [Bug 12529] Samuel GOUGEON has changed component, assigned_to
bugzilla.admin at scilab.org
bugzilla.admin at scilab.org
Sat Mar 24 18:19:56 CET 2018
http://bugzilla.scilab.org/show_bug.cgi?id=12529
--------- Bug Summary -----------
listvarinfile: wrong/missing infos about compiled functions, handles and structures
---------- Changed by ------------
sgougeon at free.fr
---------- What changed ----------
component, assigned_to
Samuel GOUGEON <sgougeon at free.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|Input / output |Data import/export
Assignee|vincent.couvert at scilab-ente |bugzilla.admin at scilab.org
|rprises.com |
--- Comment #1 from Samuel GOUGEON <sgougeon at free.fr> ---
clear c s hm foo h
c = makecell([1,3],%z^2,"abc",[%i 3]);
s.%r = %pi;
hm = rand(1,2,2);
function foo(), disp("foo"), endfunction
h = gcf();
save test.sod c s hm foo h
listvarinfile test.sod
With Scilab 5.5.2:
-----------------
-->listvarinfile test.sod ;
Name Type Size Bytes
---------------------------------------------------------------
c mlist 3 312
foo tlist 3 304
h tlist 3 15224
hm mlist 3 188
s mlist 4 176
With Scilab 6.0.1:
-----------------
a) Saving and loading all these kinds of objects works.
b) listvarinfile() works for hm, h, and foo:
clear hm foo h
hm = rand(1,2,2);
hms = string(hm);
function foo(), disp("foo"), endfunction
h = gcf();
save test.sod hm hms foo h
listvarinfile test.sod
--> listvarinfile test.sod
Name Type Size Bytes
-------------------------------------------------------------
foo macro 1 by 1 0
h handle 1 by 1 0
hm double 1 by 2 by 2 32
hms string 1 by 2 by 2 72
c) listvarinfile() CRASHES Scilab for cells:
d) listvarinfile() MISSES struct arrays: the name is well returned, but no line is printed.
In addition, the file is locked: it is no longer possible to overwrite it.
clear s
s(2,3).r = %e;
save test.sod s
listvarinfile test.sod
save test.sod s
--> listvarinfile test.sod
Name Type Size Bytes
-------------------------------------------------------------
ans = <<<< No line printed for s
s <<<< "s" is well returned
--> save test.sod s
save: Cannot open file test.sod. <<<< The file is kept locked. We must quit Scilab to unlock it
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/bugzilla/attachments/20180324/7702f4dc/attachment.htm>
More information about the Bugzilla
mailing list