Issue with ]fn.compare

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

Issue with ]fn.compare

Postby dyallaz on Fri Feb 17, 2023 9:07 pm

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
Screenshot 2023-02-17 at 20.15.png
The harmful function lines from Dyalog
Screenshot 2023-02-17 at 20.31.png
Another effective result with a fake FOUNDDIFFS=1
Screenshot 2023-02-17 at 20.14.png
How to get an effective result
dyallaz
 

Re: Issue with ]fn.compare

Postby Adam|Dyalog on Mon Feb 20, 2023 5:14 pm

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.
User avatar
Adam|Dyalog
 
Posts: 137
Joined: Thu Jun 25, 2015 1:13 pm

Re: Issue with ]fn.compare

Postby dyallaz on Tue Feb 21, 2023 5:06 pm

I'm relieved . Thanks for the message.
dyallaz
 


Return to macOS

Who is online

Users browsing this forum: No registered users and 0 guests