Emulating IBM/APL []TF - Transfer Form

How to move APL code to Dyalog

Emulating IBM/APL []TF - Transfer Form

Postby gropi on Tue Jun 15, 2010 4:55 pm

Can someone provide the source code to emulate Quad TF under Dyalog APL?
This IBM APL system function returns the APL source code as a string to recreate a variable (name specified as a string parameter).
Hagen Großpietsch; Nürnberg, Germany
gropi
 
Posts: 1
Joined: Sun Feb 28, 2010 1:47 pm

Re: Emulating IBM/APL []TF - Transfer Form

Postby DanB|Dyalog on Thu Jun 17, 2010 5:00 pm

Dyalog provides tools to migrate code from one APL vendor to another and even from one version of Dyalog to another.
There exists a function that will return a string that will recreate a variable given as argument.
It has limitations and forms, for example, cannot be recreated.
Is this what you are looking for? If so look into tools\migrate: you'll find ws v10_to_v11 which contains fn xfr.repObj which you can use like this:

xfr.repObj ⍳¨⍳4
(,1) (1 2) (1 2 3) (1 2 3 4)

hope this helps
/Dan
DanB|Dyalog
 

Re: Emulating IBM/APL []TF - Transfer Form

Postby rex on Sun Oct 08, 2023 3:36 pm

Does this repObj function still exist in Dyalog APL/W-64 version 18.2 ?
rex
 
Posts: 10
Joined: Sat Jun 10, 2023 10:49 pm

Re: Emulating IBM/APL []TF - Transfer Form

Postby Vince|Dyalog on Mon Oct 09, 2023 9:10 am

Hi Rex,

Yes, it exists in ⎕SE.Dyalog.Utils in current versions.

⎕se.Dyalog.Utils.repObj ⍳¨⍳4
(,1) (1 2) (1 2 3) (1 2 3 4)

Regards,

Vince
Vince|Dyalog
 
Posts: 406
Joined: Wed Oct 01, 2008 9:39 am

Re: Emulating IBM/APL []TF - Transfer Form

Postby rex on Mon Oct 09, 2023 10:14 pm

Thank you , Vince. That works.

A newbie question: How would I have found this on my own?
I don't see it when I execute
      ]-??
rex
 
Posts: 10
Joined: Sat Jun 10, 2023 10:49 pm

Re: Emulating IBM/APL []TF - Transfer Form

Postby Vince|Dyalog on Tue Oct 10, 2023 8:22 am

Hi Rex,

That is a good question!

Dan provided the name, so you could search in an internet search engine for dyalog repobj.

That can lead to this page, which is a very good page for a new user to see in any case:

https://www.dyalog.com/getting-started/tips.htm

There are other resources on our website under Learning->Getting Started
https://www.dyalog.com/getting-started.htm

Regards,

Vince
Vince|Dyalog
 
Posts: 406
Joined: Wed Oct 01, 2008 9:39 am


Return to Migrating from other Systems

Who is online

Users browsing this forum: No registered users and 1 guest