Re: [Factor-talk] Ctrl+Break

2015-10-12 Thread Björn Lindqvist
2015-10-01 23:12 GMT+02:00 Alexander Ilin : > Hello! > > 01.10.2015, 22:33, "HP wei" : >> I try to hit Control-C but it continues to run. >> *** How to exit a running words ? > > HP wei raises a very good point. Is there a way to interrupt an > infinite

Re: [Factor-talk] Ctrl+Break

2015-10-02 Thread Jon Harper
I don't use windows normally, but I did a quick test and it worked. Double click factor.com or run it from a terminal, enter "[ t ] loop" in the listener and then ctrl-c and t in the terminal and it interrupts. For example, if you do "[ 1 seconds sleep t ] loop" and do the same factor will most

Re: [Factor-talk] Ctrl+Break

2015-10-02 Thread Alexander Ilin
Are we still talking about Factor on Windows? 02.10.2015, 13:11, "Jon Harper" : > You can also hit CTRL-C on the terminal, then press 't' to throw an exception > in factor. If the listener is doing a busy loop, it will get the exception > and it should work. If the

Re: [Factor-talk] Ctrl+Break

2015-10-02 Thread Jon Harper
You can also hit CTRL-C on the terminal, then press 't' to throw an exception in factor. If the listener is doing a busy loop, it will get the exception and it should work. If the exception goes to another thread because the listener thread yields, it can kill the whole process, so you have to use

Re: [Factor-talk] Ctrl+Break

2015-10-01 Thread Alexander Ilin
Hello! 01.10.2015, 22:33, "HP wei" : > I try to hit Control-C but it continues to run. > *** How to exit a running words ? HP wei raises a very good point. Is there a way to interrupt an infinite loop or a long-running word? If such a mechanism is not there in Factor UI,

Re: [Factor-talk] Ctrl+Break

2015-10-01 Thread Alexander Ilin
Hello! You could have that as a library function, not necessarily written in Factor. The Listener already catches and handles all exceptions raised by running user code, am I right? 02.10.2015, 00:19, "John Benediktsson" : > you can open another listener and suspend the