Hi Jürgen, Blake, APLers, wouldn't it be a low effort approach to switch to )DUMP-format as general workspace file format, having at the end an optional ⍝-area containing <StateIndicator levels="1"> from the current XML-fileformat.
If this ⍝-area is present loading the file, it gets parsed and loaded, otherwise it is loaded as currently without state indicator. just my 2cents - :) Otto Blake McBride <blake1...@gmail.com> writes: > On Wed, Feb 24, 2021 at 7:06 AM Dr. Jürgen Sauermann < > mail@jürgen-sauermann.de> wrote: > >> [...] >> >> First of all, )save produces an old file format.These days )dump is >> preferred over )save >> since it makes it much easier to recover most of a broken workspace files, >> and the )dump >> format is pretty much directly executable APL code rather than xml. That >> makes )dump more >> independent of the interpreter version than )save. >> >> The only disadvantage of )dump is that it does not save the )SI stack likw >> )save does. >> So when you )dump a workspace the you loose the )SI stach and with it all >> local variables. >> [...] >> > > Two points: > > 1. It is confusing to have two formats. > > 2. Preferring )DUMP, which isn't even part of standard APL, is, in a > sense, changing the language. > > My suggestion is: > > A. Get rid of )SAVE > B. Rename )DUMP to )SAVE > C. Enhance the dump format to save the SI. > > Blake McBride -- Dipl. Ing. (FH) Otto Diesenbacher-Reinmüller diesenbacher.net Salzburg, Österreich