Hi Elias,

I might have made sense if they had done it that way from the start.

But now it would create a backward-incompatibility with existing code
which I wanted to avoid. Also, the case where *A* is repeated but less than
determined by *B* can not be handled with scalar extension alone. That one
is quite common when dealing with bytes and hexadecimal encodings.

Best Regards,
Jürgen


On 12/14/25 18:11, Elias Mårtenson wrote:
Wouldn't it make sense to have regular encode simply do scalar extension when the left argument is scalar? That's what I do in Kap, and what several porter dialects use.

Den fre 5 dec. 2025 02:35Dr. Juergen Sauermann via Bugs and suggestions for GNU APL <[email protected]> skrev:

    Hi,

    I have added a new function *Z←A⊤[X]B* to GNU APL. The classical
    *Z←A⊤B
    *is somewhat cumbersome to use due to its lack of scalar extension
    for its
    radix *A*. The new function tries to improve on that.

    *SVN 1924*; see *info apl* or
    https://www.gnu.org/software/apl/apl.html
    for details.

    Enjoy,
    Jürgen

Reply via email to