I don't know how wd'msgs' works, but I know it doesn't interact with the JE where 6!:3 is executed.  An alternative explanation for your observations might be that wd'msgs' prints messages that are pending when it is executed.  That is, the messages are appearing not after the delay, but at the time of the next wd'msgs'.  You could test that.

Henry Rich

On 8/9/2020 2:27 AM, Raul Miller wrote:
Under both J901 and J902, wd 'msgs' seems to take effect at the wrong
point of execution.

delay=: 6!:3
status=: wd@'msgs'@echo
status 'start'
delay 1
status 'started'
delay 5
status 'done'

Here, the text from echo commands do not appear until after the
subsequent delay commands have completed.

Is this intended? If so, why? If not, could wd 'msgs' and/or 1!:2 be
fixed so that the echo text appears when wd'msgs' is run?

Thanks,



--
This email has been checked for viruses by AVG.
https://www.avg.com

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to