Is there an efficient equivalent of "curry" to add a word to execute
in front of a quotation (so that the quotation can still be compiled?)
For example, does
\ swap add*
give a compilable quotation if the quotation on the stack can be
compiled?
Would "curry*" written as
: curry* ( param obj quot -- obj curry )
swapd \ swap add* 2curry ; inline
be as efficient as the current definition?
(without considering the fact that "add*" cannot be used in the
kernel)
On a related topic, would the following be efficient?
: curry* ( param obj quot -- obj curry )
rot [ , \ swap , % ] [ ] make ; inline
Sam
--
Samuel Tardieu -- [EMAIL PROTECTED] -- http://www.rfc1149.net/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk