Directory is a
MapCollection
using unique character string indexes.
The items of a Directory can be any valid Rexx object.
MapCollection similar to Directory,
but without methods setMethod and
unsetMethod.
| Object | |||||||||||||||||||||||||
| Methods inherited from the Object class | |||||||||||||||||||||||||
| Class (Metaclass) | |||||||||||||||||||||||||
| Methods inherited from the Class class | |||||||||||||||||||||||||
| + Collection (Mixin Class) | |||||||||||||||||||||||||
| Methods inherited from the Collection class | |||||||||||||||||||||||||
| + MapCollection (Mixin Class) | |||||||||||||||||||||||||
| Methods inherited from the MapCollection class | |||||||||||||||||||||||||
| Directory | |||||||||||||||||||||||||
|
put,
[]=, at, and
[] methods defined for
Collections, Directory provides access to items using methods. For
example:
mydir = .directory~new
mydir~name = "Mike" -- same as mydir~put("Mike", "NAME")
say mydir~name -- same as say mydir['NAME']