Copying objects from a saved ⎕SE
Forum rules
The FAQ is a read-only forum which is in general updated only by employees of Dyalog Ltd. It replaces the FAQ page which existed under http://www.dyalog.com. Rather than rejecting other posts to this forum, such posts will be put in a moderation queue, and moved to a more appropriate forum.
The FAQ is a read-only forum which is in general updated only by employees of Dyalog Ltd. It replaces the FAQ page which existed under http://www.dyalog.com. Rather than rejecting other posts to this forum, such posts will be put in a moderation queue, and moved to a more appropriate forum.
1 post
• Page 1 of 1
Copying objects from a saved ⎕SE
Currently it is not possible to )COPY or ⎕CY from either a session file or an extended workspace file.
One workaround, suggested by Geoff Streeter, is as follows:
In the source APL:
In the target APL:
Where se.object is each of the objects which you wish to copy in turn. It would probably be a good idea to generate that list in the original session and save as a variable which could be copied into the target session and used as a base for an automated set of ⎕CYs.
The "+" in )save + causes the interpreter to save a copy of the ⎕SE namespace along with the workspace in an extended workspace file.
One workaround, suggested by Geoff Streeter, is as follows:
In the source APL:
se←⎕se
)save + tmpse
In the target APL:
)copy ./tmpse se.object
Where se.object is each of the objects which you wish to copy in turn. It would probably be a good idea to generate that list in the original session and save as a variable which could be copied into the target session and used as a base for an automated set of ⎕CYs.
The "+" in )save + causes the interpreter to save a copy of the ⎕SE namespace along with the workspace in an extended workspace file.
-
AndyS|Dyalog - Posts: 263
- Joined: Tue May 12, 2009 6:06 pm
1 post
• Page 1 of 1
Return to Frequently Asked Questions (FAQ)
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group