bug-apl
[Top][All Lists]
Advanced

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

[Bug-apl] ]usercmd patch attached


From: David B. Lamkins
Subject: [Bug-apl] ]usercmd patch attached
Date: Sat, 17 May 2014 11:21:22 -0700

Here's a patch to let ]usercmd accept restatement of an existing user
command definition so long as the associated function name and mode are
identical.

      ]usercmd ]foo foo 1
    User-defined command ]foo installed.
      ]usercmd ]foo foo 1
      ⍝ without the patch there'd be a BAD COMMAND response here
      ]usercmd ]foo foo
BAD COMMAND
      ⍝ correct: mode differs
      )more
conflict with existing user command definition in command ]USERCMD
      ]usercmd ]foo goo 1
BAD COMMAND
      ⍝ correct: function name differs
      )more
conflict with existing user command definition in command ]USERCMD
      ]help
Commands are:
      )CHECK 
[... snip ...]
      ]XTERM [ON or OFF]

User defined commands:
      ]foo → A foo B (mode 1)
      ⍝ initial definition is still present
      

Attachment: lamkins-usercmd.patch
Description: Text Data


reply via email to

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