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" <mrj...@gmail.com>:
> you can open another listener and suspend the thread of the first
>
> we don't have a way to kill threads:
>
>     https://github.com/slavapestov/factor/issues/1387
>
> or wait/join threads:
>
>     https://github.com/slavapestov/factor/issues/1407
>
> On Thu, Oct 1, 2015 at 2:12 PM, Alexander Ilin <ajs...@yandex.ru> wrote:
>> Hello!
>>
>> 01.10.2015, 22:33, "HP wei" <hpwe...@gmail.com>:
>>> 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, I could share a way to 
>> implement it (Windows-specific).
>>
>>   It involves running a native background thread with the Ctrl+Break hotkey 
>> globally hooked. When the hotkey is triggered, the main thread is 
>> interrupted by setting its exception flag. All words running from the 
>> Scratchpad should expect this special kind of exception. I'm not too good 
>> with Factor yet, so I could not implement this without some serious 
>> help/pointers, but I can share the details of the same mechanism implemented 
>> elsewhere (an open-source run-time environment).
>>
>> ---=====---
>> Александр
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Factor-talk mailing list
>> Factor-talk@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/factor-talk
> ,
>
> ------------------------------------------------------------------------------
> ,
>
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk


---=====---
Александр

------------------------------------------------------------------------------
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to