Namespace

Every Meso program must begin with a namespace statement. The namespace in Meso is not just a name; it affects how the source code will be compiled. A namespace must begin with a scheme portion (such as meso: or imop:), which declares the target code that the program should be compiled to. More over, the source code's file extension must match the scheme name. For example:

File Bar.meso:

namespace meso:foo;
class Bar {                       // This will be compiled to a Meso class
   ...
}

File Bar.imop:

namespace imop:example.com/foo;
object Bar {                      // This will be compiled to an IMOP object
   ...
}

File Bar.java:

namespace java:foo;
class Bar {                       // This will be compiled to a Java class 
   ...                            // (not supported yet)
}