Created
April 21, 2010 02:00
-
-
Save earl/373327 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REBOL [] | |
unset 'exit | |
unset 'return | |
function-ctx: context [ | |
exit: :system/contexts/system/exit | |
return: :system/contexts/system/return | |
] | |
func: make function! [[ | |
spec [block!] | |
body [block!] | |
][ | |
make function! copy reduce [ | |
copy/deep spec | |
bind/copy body function-ctx | |
] | |
]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment