Hi Jürgen,
> Interestingly, my APL2 reports DOMAIN ERROR on 0 +/ 99
Odd. You should mention that in the APL2 forum. Perhaps you need a later service level.
There's still one minor inconsistency between APL2 and GNU APL on that _expression_. ≡ reports a depth of 4 for the result in APL2 and a depth of 3 in GNU APL. I have no idea why. APL2 appears to be doing an extra enclose on the elements of the array.
In my APL2, enclose of a simple scalar (a single character or number), is a no-op. However, enclosed arrays are not simple scalars and can be enclosed again, increasing their depth by one.
This is different from GNU APL, which appears to no-op all encloses of scalars.
[IBM APL2]
≡⊂⊂⊂⊂⊂,8
6
[GNU APL]
≡⊂⊂⊂⊂⊂,8
2
Which one of these is "right" is a philosophical question.
Regards,
Mike