table-definer

Defines a constant binding in the current module and initializes it to a new table object.  If the argument type is supplied, the new table created is an instance of that type.  Therefore type must be <table> or a subclass thereof.  If type is not supplied, the new table created is an instance of a concrete subclass of <table>.

define table $colors :: <object-table>
= { #"red" => $red,
#"green" => $green,
#"blue" => $blue };

Exported from

Macro call

define table (name) :: (type) = { (key) => (element), ... }

Arguments

nameA variable name.
typeA class.  Optional.  Defaults to <table>.
keyAn expression for the key of the element.
elementAn expression for an element
The class of tables (also known as hash tables).
The common-dylan module.
Miscellaneous extensions to the Dylan language.