>>
APLDN Home

>>
Events

>>
Trainings

>>
APL Books

>>
APLDN Links

>>
Discussion Groups

>>
Downloads

>>
Articles

>>
Library

>>
Learning Tools

>>
APLDN User IO

>>
APL2000.com




Bug Reports

Author Thread: Delayed Execution of )CLEAR via []INBUF
Rex.Swain
Delayed Execution of )CLEAR via []INBUF
Posted: Tuesday, February 15, 2005 11:10 AM (EST)

I have a function that builds a script and executes it with []INBUF.  There is a )CLEAR in the middle of the script.  It all works fine -- except if the state indicator is not empty.

 

After a )RESET, the function foo below works as expected.

 

foo;x
© ŒINBUF probelm with )CLEAR
© 15 Feb 2005  Rex Swain, Independent Consultant,
www.rexswain.com
x„  ')wsid',Œtcnl
x„x,')clear',Œtcnl
x„x,')wsid',Œtcnl
0 Œinbuf x

 

      foo
      )wsid
IS 5 INBUF
      )clear
CLEAR WS
      )wsid
IS CLEAR WS

 

But if you execute the function goo below, and then run foo again with goo suspended, the )CLEAR does not take effect until the end of the script. 

 

goo
2÷0

 

      goo
DOMAIN ERROR
goo[1] 2÷0
        ^
      foo
      )wsid
IS 5 INBUF
      )clear
)wsid
IS 5 INBUF
CLEAR WS

 

In a more complicated case, the )CLEAR seems to never be executed.

 


Comments:

Author Thread:
Support
Delayed Execution of )CLEAR via []INBUF
Posted: Tuesday, February 15, 2005 3:01 PM (EST)

This is a new bug.  Thank  you for reporting it.

APL2000 Support

     



APL2000 Official Web Site

Make others happy and joyful. Your happiness will multiply a thousand fold.
--- Swami Sivananda

APLDN Home   |    |  Events   |  Trainings   |  APL Books   |  APLDN Links   |    |  Discussion Groups   |    |  Downloads   |  Articles   |  Library   |  Learning Tools   |  APLDN User IO   |  APL2000.com   |