Assignment 3

Ryerson University

HL Typing

Object Types

Here are the types available in HL.


HL is statically typed. Each variable is declared to be of a specific type and this type cannot change. This includes the types of function parameters and the return types of functions.

Type Conversions

The only possible type conversion in HL is from integer to polynomial: Any integer n can be automatically converted into the polynomial n*x^0 when the context requires it, i.e. for addition and subtraction.

This page is maintained by Sophie Quigley (cps710@scs.ryerson.ca)
Last modified Monday, 05-Sep-2016 09:04:57 EDT