Skip to content

Instantly share code, notes, and snippets.

@earl
Created April 21, 2010 02:00
Show Gist options
  • Save earl/373327 to your computer and use it in GitHub Desktop.
Save earl/373327 to your computer and use it in GitHub Desktop.
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