Issue with ]fn.compare

A forum for issues on macOS; the UNIX and Linux forums may have relevent posts
Post Reply
dyallaz

Issue with ]fn.compare

Post by dyallaz »

I have psychological problems with User Commands, so I use them every 10 months at most. Today I remembered the existence of ]fn.compare and used it to compare 2 slightly different versions of a Dops of mine. The result was an, at first sight, useless error message "VALUE ERROR: Undefined name: FOUNDDIFFS." After some deep thinking, I realised that this name probably referred to a variable in the APL code behind the command. With ]UDebug on, I was able to stop the processing and define FOUNDIFFS from my workspace. Resuming the run provided the expected result.

May I suggest a patch to your developers: erasing lines [68] to [70] in the relevant function?
Attachments
The harmful function lines from Dyalog
The harmful function lines from Dyalog
Another effective result with a fake FOUNDDIFFS=1
Another effective result with a fake FOUNDDIFFS=1
How to get an effective result
How to get an effective result
User avatar
Adam|Dyalog
Posts: 143
Joined: Thu Jun 25, 2015 1:13 pm

Re: Issue with ]fn.compare

Post by Adam|Dyalog »

Thank you for this report. I've fixed the code to be as follows:
:If 0=≢r
          r←'[no differences found]'
      :EndIf
This will go into future builds.
dyallaz

Re: Issue with ]fn.compare

Post by dyallaz »

I'm relieved . Thanks for the message.
Post Reply