Chapter 6. How to implement or modify a field

Table of Contents

Enforcing the API
Input/Output of code_for_xxx()
Splitting information in several files
The inheritance schema, and conflict resolution
The elementary package files: the init_handler functions.
The top-level package file
The main generator file
Some extra notes

Enforcing the API

Each implementation should strictly follow the API. For that an automated generation scheme is present that must be used. Therefore, for each field or class of field, one must provide a list of Perl functions of the form code_for_xxx(), where xxx is the name of a function in the API. The generation scheme will then be able to check that every function in the API is indeed implemented and will produce a prototype directly from the API.