Jump to content

Rebol Programming/construct

From Wikibooks, open books for an open world

USAGE:

[edit | edit source]
CONSTRUCT block /with object 

DESCRIPTION:

[edit | edit source]

Creates an object, but without evaluating its specification.

CONSTRUCT is a native value.

ARGUMENTS

[edit | edit source]
  • block -- Object specification block (Type: block)

REFINEMENTS

[edit | edit source]
  • /with -- Provide a default base object
    • object -- (Type: object)

SOURCE CODE

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