Well, I think you could also do this: build-dynamic-quotation '[ _ call( x -- y ) ] bi@
However, you should reconsider whether you really need to build a dynamic quotation. Remember, building a quotation with curry and compose and fry doesn't necessarily make it dynamic. In the current Factor code base, the main use cases of dynamic quotations is when using quotations stored in places like dynamically scoped variables (for example in the parser), word properties (in the compiler) or tuple slots (in Furnace), or in genuinely dynamic situations (like the listener). Most other situations can be handled with high-level code without building quotations dynamically. Dan On Fri, Feb 26, 2010 at 11:13 AM, Samuel Tardieu <s...@rfc1149.net> wrote: > Jon and I were discussing earlier today of a way to use a dynamically built > quotation with "bi@" and other combinators. > > I suggested the word > > : add-stack-effect ( quot effect -- quot' ) [ call-effect ] 2curry ; inline > > so that we can call > > build-dynamic-quotation (( x -- y )) add-stack-effect bi@ > > Is there a better way to do it? > > Sam > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk