|
From: | Dr . Jürgen Sauermann |
Subject: | Re: [Bug-apl] prompting |
Date: | Wed, 12 Jun 2019 21:18:32 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
Hi Bill, maybe you meant to: resp←(∼∧\ans=' ')/ans instead of: resp←(∧\ans≠' ')/ans to discard the leading blanks? Like in: ⎕CR 'prompt' resp←prompt pr ⍝ Subroutine to prompt for user input. ⍞←pr ans←⍞ 'ans is:' ans resp←(∼∧\ans=' ')/ans 'resp is:' resp prompt '<-prompt->' <-prompt-> the answer ans is: the answer resp is: the answer the answer Best regards, /// Jürgen On 6/12/19 8:06 PM, Bill Daly wrote:
I'm sending thee a workspace created after I encountered an error in function prompt. I've also included a log of how I encountered the error. |
[Prev in Thread] | Current Thread | [Next in Thread] |