I see that  there is entry on the J wiki about the fact that there is no
workspace save in
J<http://www.jsoftware.com/jwiki/Guides/General%20FAQ/Workspace> that
asserts that there is no built-in workspace save.

But then I thought that it should be possible to save a workspace in J.  Not
with a built in save, but with a function that enumerates names of different
types, classifies them, writes them to files and puts them back together.

I think that such a function would have to go through the list of objects
(definitions and nouns), determine type, and convert it to some format that
could be written to a file.

The biggest problem I see is that some nouns would be unable to be converted
to nouns in a definition...you could create special verbs that could
recreate those nouns, maybe all of them at once, and then delete the
creating verb once it had done its job. Or maybe you could put everything
into a file in a special format and then have the "restore workspace" verb
read the create verb and put the defined functions and nouns back.

In my adventures in programming, I occasionally do something that freezes my
whole machine because I overcommit memory so bad that I can't get through,
and then if I've built tables in my workspace I lose them, because all I can
do is x out.

Overcommiting is serious - it gets so bad that I can't get to anyplace I can
start the break program from, so all I can do is click on the kill window
box, and that gets me out.

Has anyone tried to write a "save" verb?  Or one that saves the base locale,
or some named locale?

or is it just impossible because of something I don't get?

-- 
Of course I can ride in the carpool lane, officer.  Jesus is my constant
companion.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to