跳轉到內容

Rebol 程式設計/clear-face

來自華夏公益教科書,開放的書籍,開放的世界
CLEAR-FACE face /no-show 

清除一個臉部的主要值。

CLEAR-FACE 是一個函式值。

  • face -- (型別:任何)
  • /no-show -- 暫時不顯示變化

原始碼

[編輯 | 編輯原始碼]
clear-face: func [
    "Clears the primary value of a face." 
    face 
    /no-show "Do not show change yet" 
    /local access
][
    if all [
        access: get in face 'access 
        in access 'clear-face*
    ] [
        access/clear-face* face
    ] 
    if not no-show [show face] 
    face
]
華夏公益教科書