I find myself using the following pattern quite a bit when most of the words in a vocabulary seem to operate on a single important object:
! in a shogi vocab where most words operate on a shogi board : bg ( -- board-gadget ) board-gadget get ; : with-board-gadget ( gadget quot -- ) board-gadget swap with- variable ; inline The use of the namespace stack simplifies the code, but I'm wondering if it keeps the compiler from optimizing past the namespace lookup. Is there a way to do this that is more kind to the optimizing compiler? Matt ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com _______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk