11.07.2015 Views

Advanced Programming Guide

Advanced Programming Guide

Advanced Programming Guide

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.3 Packages • 91shape-specific functionality for each shape type supported by the package.Each of these shape-specific submodules is stored in its own source file;these files are included into the main package source file, shapes.mpl.The package module Shapes has a submodule, also called Shapes;and the submodule Shapes:-Shapes contains one submodule for eachkind of shape supported. This submodule hierarchy is illustrated in thefollowing diagram.ShapesShapespointtrianglesegmentsquarecircleShapes Package Submodule StructureThe result of preprocessing the main file shapes.mpl produces a modulewhose source has the following general outline.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!