Packages

Mantra has packages just like Java though I use '::' rather than '.'
to separate packages from classes:

package org::antlr::test;

import mantra::io; // same as java's import mantra.io.*;

class int {...}

The mantra::io and mantra::lang packages are imported automatically.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.