Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2009-07-29 21:22:48
Size: 1204
Editor: KaiJaeger
Comment:
Revision 3 as of 2017-07-06 07:57:41
Size: 1251
Comment: default 1, fix typo
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
'''''Under Construction'''''

The system variable `⎕ML` determines the degree of compatability of Dyalog APL towards IBM's APL2. In general, the value 0 represents "native Dyalog". The higher the value, the close to APL2/
The system variable `⎕ML` determines the degree of compatability of Dyalog APL towards IBM's APL2. In general, the value 0 represents "native Dyalog". The higher the value, the closer to APL2/
Line 9: Line 7:
Note that with a default installation `⎕ML` is set to 0. Note that with a default installation `⎕ML` is set to `1`.
Line 11: Line 9:
||<tablebgcolor="#ffe" tablestyle="margin-top:1em;font-size:medium">⎕ML←0 || || Native Dyalog (Default) ||
||`⎕ML←1` || `Z←∊R` || Monadic `∊` is interpreted as 'enlist' rather than 'type' ||
||`⎕ML←2` || `Z←↑R` || Monadic `↑` is interpreted as 'first' rather than 'mix' ||
|| || `Z←⊃R` || Monadic `⊃` is interpreted as 'mix' rather than 'first' ||
|| || `Z←­R` || Monadic '­' returns the absolute value of the depth of<<BR>>its argument, rather than a negative value if the depths<<BR>>of its sub-arrays are unequal||
||`⎕ML←3` || `R←X⊂[K]Y` || Dyadic '' follows the APL2 (rather than the original Dyalog APL) convention ||
||<tablebgcolor="#ffe" tablestyle="margin-top:1em;font-size:medium">'''ML setting'''||'''APL'''||'''Remarks'''||
||`
⎕ML←0` || || Native Dyalog (Default) ||
||`⎕ML←1` || `∊R` || Monadic `∊` is interpreted as 'enlist' rather than 'type' ||
||`⎕ML←2` || `↑R` || Monadic `↑` is interpreted as 'first' rather than 'mix' ||
|| || `⊃R` || Monadic `⊃` is interpreted as 'mix' rather than 'first' ||
|| || `­R` || For an array with unequal levels of nesting in its subarrays,<<BR>>depth returns the maximum level of nesting. With `⎕ml≤2` <<BR>>depth returns a negative value if the subarrays have unequal depth||
||`⎕ML←3` || `X⊂[K]Y` || Dyadic `` follows the APL2 rather than the original Dyalog convention ||

DyalogMigrationLevels

The system variable ⎕ML determines the degree of compatability of Dyalog APL towards IBM's APL2. In general, the value 0 represents "native Dyalog". The higher the value, the closer to APL2/

For the time being (2009), 3 is the highest level of compatability one can achieve.

Note that with a default installation ⎕ML is set to 1.

ML setting

APL

Remarks

⎕ML←0

Native Dyalog (Default)

⎕ML←1

∊R

Monadic is interpreted as 'enlist' rather than 'type'

⎕ML←2

↑R

Monadic is interpreted as 'first' rather than 'mix'

⊃R

Monadic is interpreted as 'mix' rather than 'first'

≡­R

For an array with unequal levels of nesting in its subarrays,
depth returns the maximum level of nesting. With ⎕ml≤2
depth returns a negative value if the subarrays have unequal depth

⎕ML←3

X⊂[K]Y

Dyadic follows the APL2 rather than the original Dyalog convention

⎕TC

The order of the elements of ⎕TC is the same as in APL2

CategoryDyalog

DyalogMigrationLevels (last edited 2017-07-06 07:57:41 by AdámBrudzewsky)