Documentation for Ice 3.5. The latest release is Ice 3.7. Refer to the space directory for other releases.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

A Slice module maps to a C++ namespace. The mapping preserves the nesting of the Slice definitions. For example:

Slice
module M1 {
    module M2 {
        // ...
    };
    // ...
};

// ...

module M1 {     // Reopen M1
    // ...
};

This definition maps to the corresponding C++ definition:

C++
namespace M1 {
    namespace M2 {
        // ...
    }
    // ...
}

// ...

namespace M1 {  // Reopen M1
    // ...
}

If a Slice module is reopened, the corresponding C++ namespace is reopened as well.

See Also
  • No labels