CoolAid: The Cool 2013 Reference Manual

Categories:

Recommended

This manual describes the programming language Cool: the Classroom Object-Oriented Language. Cool is a small language that can be implemented with reasonable effort in a one semester course. Still, Cool retains many of the features of modern programming languages including objects, static typing, and automatic memory management.

Cool programs are sets of classes. A class encapsulates the variables and procedures of a data type. Instances of a class are objects. In Cool, classes and types are identified; i.e., every class defines a type. Classes permit programmers to define new types and associated procedures (or methods) specific to those types. Inheritance allows new types to extend the behavior of existing types.

Cool is an expression language. Most Cool constructs are expressions, and every expression has a value and a type. Cool is type safe: procedures are guaranteed to be applied to data of the correct type. While static typing imposes a strong discipline on programming in Cool, it guarantees that no runtime type errors can arise in the execution of Cool programs.

This manual is divided into informal and formal components. For a short, informal overview, the first 12 pages (through Section 9) suffices. The formal description begins with Section 10.

Category:

Attribution

University of Delaware. CoolAid: The Cool 2013 Reference Manual. https://www.eecis.udel.edu/~cavazos/cisc672/docs/cool-manual.pdf

VP Flipbook Maker

Powered by Visual Paradigm Online’s free flipbook maker. Would you like to create your own flipbook? You can always make flipbooks like this and share with others easily. Bring your flipbook to live now with Visual Paradigm’s Flipbook tool!!!