Identify interpreter and version?

Learning APL or new to Dyalog? Ask "silly" questions here, without fear...

Identify interpreter and version?

Postby rex on Sun Jul 23, 2023 3:40 pm

Is there a way to query whether I am running Dyalog APL and what version?
APL+Win has system functions ⎕SYSID and ⎕SYSVER for this; I'm looking for something similar.

      ⎕SYSID
APL+Win
⎕SYSVER
10.3.01 Dec 29 2010 10:32:25 Win/32


(I am a very experienced APL programmer, but new to Dyalog.)
rex
 
Posts: 12
Joined: Sat Jun 10, 2023 10:49 pm

Re: Identify interpreter and version?

Postby petermsiegel on Mon Jul 24, 2023 5:01 am

Assuming you'd like to do this under program control, this magical formula will work:
Code: Select all
   '.' ⎕WG 'APLVersion'
 Mac-64  18.2.45405.0  S  Development
This doesn't quite tell you that it's Dyalog, but if this call succeeds, it almost certainly is!
See https://help.dyalog.com/18.2/Content/GUI/Properties/APLVersion.htm

Cheers!
petermsiegel
 
Posts: 159
Joined: Thu Nov 11, 2010 11:04 pm

Re: Identify interpreter and version?

Postby rex on Wed Jul 26, 2023 9:45 pm

That's fine. Thanks a lot.
rex
 
Posts: 12
Joined: Sat Jun 10, 2023 10:49 pm

Re: Identify interpreter and version?

Postby Adam|Dyalog on Fri Jul 28, 2023 7:04 am

These (if they succeed and return the result) should be a guarantee:
      2⊃⎕NPARTS⊃2⎕NQ#'GetCommandLineArgs'
dyalog
{0::⎕DMX.Vendor ⋄ .}⍬
Dyalog
User avatar
Adam|Dyalog
 
Posts: 143
Joined: Thu Jun 25, 2015 1:13 pm


Return to New to Dyalog?

Who is online

Users browsing this forum: No registered users and 1 guest