[Contents]
[Prev] [Next] [Limbo Basics] [Limbo Programming] [Language Definition]

Module Interface Declaration

The module interface declaration declares the public portion of the module. This includes all public types and functions. If a module has a separate module interface file, a .m file, it contains this interface declaration. For example:

Greet: module {
	init: fn(ctxt: ref Display->Draw, args: list of string);
};

This statement says, "Greet is a module. Its public interface is just init, declared to be a function that receives two arguments."



[Contents]
[Prev] [Next] [Limbo Basics] [Limbo Programming] [Language Definition]

Copyright © 1998, Lucent Technologies, Inc. All rights reserved.