Thank you, John!
 
I can now try to make it work for my real use case:
"d:/" [ [ listener-window ] with-my-db ] with-directory
 
: )) with-db is a bit trickier, I believe, than set-current-directory. with-disposal, in particular : )
 
09.11.2016, 22:00, "John Benediktsson" <mrj...@gmail.com>:
Everything is possible, with varying amounts of work.
 
This as it turns out is fairly easy but maybe requires defining a new word to make it easy.  Here is one way:
 
    : run-in-new-listener ( quot -- )
        '[
            _ \ run-in-new-listener listener-window*
            dup wait-for-listener (call-listener)
        ] with-ui ;
 
Using it:
 
    [ "d:\" set-current-directory ] run-in-new-listener
 
 
---=====---
Александр
 
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to