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" <[email protected]>:
> 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 <[email protected]> wrote:
>> Hello!
>>
>> 01.10.2015, 22:33, "HP wei" <[email protected]>:
>>> 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
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/factor-talk
> ,
>
> ------------------------------------------------------------------------------
> ,
>
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk


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

------------------------------------------------------------------------------
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to