bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Prototype erasing variable


From: Dr . Jürgen Sauermann
Subject: Re: Prototype erasing variable
Date: Mon, 20 Feb 2023 15:20:20 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

Hi Mr. Sunday,

thanks for reporting this.

Fixed in SVN 1647.

Best Regards,
Jürgen


On 2/19/23 6:42 PM, Mr. Sunday wrote:
GNU APL replaces a variable's contents when taking the prototype with 0⍴⊂.  Note also that a second variable assigned to the original variable is also affected.



                    ______ _   __ __  __    ___     ____   __
                   / ____// | / // / / /   /   |   / __ \ / /
                  / / __ /  |/ // / / /   / /| |  / /_/ // /
                 / /_/ // /|  // /_/ /   / ___ | / ____// /___
                 \____//_/ |_/ \____/   /_/  |_|/_/    /_____/

                  Welcome to GNU APL version 1.8 / SVN: 1646

                Copyright (C) 2008-2021  Dr. Jürgen Sauermann
                       Banner by FIGlet: www.figlet.org

                This program comes with ABSOLUTELY NO WARRANTY;
            for details run: /usr/local/bin/apl --gpl.

     This program is free software, and you are welcome to redistribute it
         according to the GNU Public License (GPL) version 3 or later.


      data←1 2 3 ('ABCDE' (10 20 30 40 50 60 70))
      save←data
      ⊃data save
1 2 3   ABCDE  10 20 30 40 50 60 70
1 2 3   ABCDE  10 20 30 40 50 60 70
      ⍴⊂data

      ⊃data save
1 2 3   ABCDE  10 20 30 40 50 60 70
1 2 3   ABCDE  10 20 30 40 50 60 70
      0⍴⊂data
      ⊃data save
0 0 0          0 0 0 0 0 0 0
0 0 0          0 0 0 0 0 0 0

Thank you for help.
-- To believe is to die.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]