Mapping to the CLR

The most important mappings to be decided upon, when implementing a new language on the CLI, are the mapping of compilation units onto the class and assembly structure of the CLI and the mapping of the types of the language onto the types of the Common Type System (CTS).

Mapping the Program Structure

In the CLI, classes and other named entities have their visibility controlled at the boundaries of assemblies. There may be additional rules for controlling accessibility, but the assembly boundary is the one that counts to the CLI. The use of namespaces, seemingly fundamental to programmers, has no representation at runtime. At runtime, classes have only fully qualified dotted names, with everything up to the last “dot” corresponding ...

Get Programming in the .NET Environment now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.