On 5 March 2016 at 20:12, Alexey Veretennikov <[email protected]
> wrote:
Complex numbers are incomparable in mathematical sense. In Dyalog APL
> this leads to DOMAIN ERROR however.
This is the intended behaviour in GNU APL as well. This can be seen in the
function Bif_F12_SORT::sort():
loop(bz, len_BZ)
{
array[bz] = &B->get_ravel(bz*comp_len);
if (array[bz]->is_complex_cell())
return Token(TOK_ERROR, E_DOMAIN_ERROR);
}
I believe the problem is that this function returns a Token instead of
directly raising DOMAIN ERROR.
Regards,
Elias