Array generator
GENERATOR Array (TYPE Indextype, TYPE Elementtype)
OPERATORS
Make! : Elementtype -> Array ;
Extract! : Array, Indextype -> Elementtype ;
Modify! : Array , Indextype, Elementtype -> Array ;
ENDGENERATOR Array ;
NEWTYPE ArrayOfMax1Int
ARRAY (index_1, INTEGER);
ENDNEWTYPE;
DCL ar ArrayOfMax1Int;
ar(1) := 100
Previous slide
Next slide
Back to first slide
View graphic version