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

SHORTBITSET

Spec.SHORTBITSET History

Hide minor edits - Show changes to output

2010-05-24 13:12 by benjk -
Added lines 1-17:
[@DEFINITION MODULE SHORTBITSET;

(* Alias type for 16-bit bitset type *)

<* IF TSIZE(BITSET)*8 = 16 *>

TYPE SHORTBITSET = ALIAS OF BITSET;

<* ELSE *>

IMPORT BS16;

TYPE SHORTBITSET = ALIAS OF BS16;

<* ENDIF *>

END SHORTBITSET.@]