A "restricted holder" is a generic mix-in class for various container types (Containers, Surfaces, Undersides, RearContainers, RearSurfaces) that adds a restriction to what can be contained.
RestrictedHolder : object
Superclass Tree (in declaration order)
Summary of Properties
Summary of Methods
A list of acceptable items for the container. This list can be used to identify the objects that can be put in the container (or on the surface, under the underside, or behind the rear container or surface).
Is the given object allowed to go in this container (or on/under/behind it, as appropriate for the type)? Returns true if so, nil if not. By default, we'll return true if the object is found in our validContents list, nil if not. This can be overridden if a subclass wants to determine which objects are acceptable with some other kind of per-object test; for example, a subclass might accept only objects of a given class as contents, or might accept only contents with some particular attribute.
Check a PUT IN/ON/UNDER/BEHIND action to ensure that the direct object is in our approved-contents list.
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3