object-with-elements¶
In the DRM, the generics element
and element-setter
are specified to operate on instances of <collection>
.
In the Open Dylan C-FFI, <C-statically-typed-pointer>
would
be much more useful if element
and element-setter
could be used with it, especially via the sugar syntax using []
,
but they needn’t support any other collection operations such as
do
or map
.
To accommodate this, Open Dylan provides 2 additional classes in the hierarchy provided by the standard library:
- <object-with-elements> Open Abstract Class¶
An invented superclass of collections and any other object to which
element
is applicable.- Superclasses:
- Operations:
- See also:
- <mutable-object-with-elements> Open Abstract Class¶
An invented superclass of mutable collections and any other object to which
element-setter
is applicable.- Superclasses:
- Operations:
- See also: