Rebol 编程/does
外观
< Rebol 编程
DOES body
一个定义没有参数或局部变量的函数的快捷方式。
DOES 是一个函数值。
- body -- 函数的主体块(类型:块)
- 捕获
does: func [ {A shortcut to define a function that has no arguments or locals.} [catch] body [block!] "The body block of the function" ][ throw-on-error [make function! [] body] ]