跳转到内容

The Wikibooks community is developing a policy on the use of generative AI. Please review the draft policy and provide feedback on its talk page.

Rebol 编程/construct

来自

用法

[编辑 | 编辑源代码]
CONSTRUCT block /with object 

描述

[编辑 | 编辑源代码]

创建一个对象,但不评估其规范。

CONSTRUCT 是一个原生值。

参数

[编辑 | 编辑源代码]
  • -- 对象规范块(类型:块)

细化

[编辑 | 编辑源代码]
  • /with -- 提供默认基础对象
    • 对象 -- (类型:对象)

源代码

[编辑 | 编辑源代码]
construct: native[
    {Creates an object, but without evaluating its specification.} 
    block [block!] "Object specification block" 
    /with "Provide a default base object" object [object!]
]

华夏公益教科书