---
name: "tool_dict_ensemble"
section: "3tcl"
platform: "linux"
package: "tcllib"
version: "2.0+dfsg-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/tool_dict_ensemble"
---

# tool\_dict\_ensemble(3tcl)

Dictionary Tools

```

```

## NAME

tool::dict\_ensemble - Dictionary Tools

## SYNOPSIS

package require **tool ?0.4.2?**

*object* *ensemble* **add** *field*

```

```

## DESCRIPTION

The **dict\_ensemble** command is a keyword added by **tool**. It defines a public variable (stored as a dict), and an access function to manipulated and access the values stored in that dict.

- *object* *ensemble* **add** *field*

  \] *value* *value ...*\] Adds elements to a list maintained with the *field* leaf of the dict maintained my this ensemble. Declares a variable *name* which will be initialized as an array, populated with *contents* for objects of this class, as well as any objects for classes which are descendents of this class.

## AUTHORS

Sean Woods

## BUGS, IDEAS, FEEDBACK

This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category *tool* of the *Tcllib Trackers* \[http://core.tcl.tk/tcllib/reportlist\]. Please also report any ideas for enhancements you may have for either package and/or documentation.

When proposing code changes, please provide *unified diffs*, i.e the output of **diff -u**.

Note further that *attachments* are strongly preferred over inlined patches. Attachments can be made by going to the **Edit** form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar.

## KEYWORDS

TOOL, TclOO

## CATEGORY

Utility

## COPYRIGHT

```
Copyright (c) 2015 Sean Woods <yoda@etoyoc.com>
```
