Modula-2 Reloaded

A Modern Typesafe & Literate Programming Notation

Site Menu

Project

Specification

Implementation

Recommendations

Reference

Needs Updating

Work in Progress

Wastebasket

Wiki Manual

edit SideBar

Collections

DEFINITION MODULE Collections;

(* Common definitions for all collection modules *)

FROM SYSTEM IMPORT ADDRESS;

TYPE
    CollectionData = ADDRESS;

    Status = ENUM
        Success,
        InvalidSize,
        InvalidContainer,
        InvalidData,
        InvalidProcedure,
        ContainerEmpty,
        ContainerOverflow,
        AllocationFailed
    END;

END Collections.