REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: context

context  blk

Defines a unique object.

Arguments:

blk [block!] - Object words and values.

See also:

make  

Description

This function creates a unique new object. It is just a shortcut for make object!.

person: context [
    name: "Fred"
    age: 24
    birthday: 20-Jan-1986
    language: "REBOL"
]
probe person
make object! [
    name: "Fred"
    age: 24
    birthday: 20-Jan-1986
    language: "REBOL"
]
person2: make person [
    name "Bob"
]
probe person2
make object! [
    name: "Bob"
    age: 24
    birthday: 20-Jan-1986
    language: "REBOL"
]


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin