On Wednesday 14 February 2007 11:47, Slava Pestov wrote: > Instead of redefining the 'listen' word, you can store a quotation in > the listener-hook variable.
Yeah, I noticed the listener-hook variable and I'd prefer to add things to a hook. However... : listener ( -- ) quit-flag get [ quit-flag off ] [ prompt. listener-hook get call listen listener ] if ; The listener-hook is called before the input is read and evaluated. I tried to set listener-hook to [ (print-stacks) ] and I ended up with a PREL instead of a REPL. ;-) Ed ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk