Emulating IBM/APL []TF - Transfer Form

How to move APL code to Dyalog
Post Reply
gropi
Posts: 1
Joined: Sun Feb 28, 2010 1:47 pm

Emulating IBM/APL []TF - Transfer Form

Post by gropi »

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
DanB|Dyalog

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

Post by DanB|Dyalog »

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
rex
Posts: 12
Joined: Sat Jun 10, 2023 10:49 pm
Contact:

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

Post by rex »

Does this repObj function still exist in Dyalog APL/W-64 version 18.2 ?
Vince|Dyalog
Posts: 439
Joined: Wed Oct 01, 2008 9:39 am

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

Post by Vince|Dyalog »

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
rex
Posts: 12
Joined: Sat Jun 10, 2023 10:49 pm
Contact:

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

Post by rex »

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
]-??
Vince|Dyalog
Posts: 439
Joined: Wed Oct 01, 2008 9:39 am

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

Post by Vince|Dyalog »

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
Post Reply