跳到內容

Rebol 程式設計/has

來自華夏公益教科書,開放的書籍,開放的世界
HAS locals body 

定義一個具有區域性變數但沒有引數的函式的快捷方式。

HAS 是一個函式值。

  • locals -- (型別:塊)
  • body -- (型別:塊)

原始碼

[編輯 | 編輯原始碼]
has: func [
    {A shortcut to define a function that has local variables but no arguments.} 
    locals [block!] 
    body [block!]
][function [] locals body]
華夏公益教科書