bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Would a more helpful error message be possible?


From: Juergen Sauermann
Subject: Re: [Bug-apl] Would a more helpful error message be possible?
Date: Mon, 14 May 2018 17:46:14 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

Hi Dirk,

thank you very much for your proposal.

Introducing new errors in GNU APL would also require new error numbers in ⎕ET and
friends, and that could break existing programs of other GNU APL users.

For that reason I took a different approach of providing the error details with the
 )MORE command:

      ∇Z←FOO B
[1] Z←B
[2] ∇
     
      FOO←1 2 3
SYNTAX ERROR+
      FOO←1 2 3
      ^  ^

      )MORE
Cannot assign a value to a function



SVN 1048.

Best regards,
/// Jürgen



On 05/13/2018 03:15 PM, Dirk Laurie wrote:
Hi Jürgen:

      a←1
      a←{⍺*⍵}
SYNTAX ERROR

Also:
      f←{⍺-⍵}
      f←1
SYNTAX ERROR

Would it be possible to print NAME CLASS ERROR instead?

Best wishes
Dirk



Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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