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

SHORTINT

DEFINITION MODULE SHORTINT;

(* Alias type for 16-bit Signed Integer Numbers *) 

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

TYPE SHORTINT = ALIAS OF INTEGER;

<* ELSE *>

IMPORT INT16;

TYPE SHORTINT = ALIAS OF INT16;

<* ENDIF *>

END SHORTINT.