Skip to content
  Kermeta  

Primitive Types

Document Actions

Semantic

See section Basic Types of Kermeta Manual

In K2, there is no more the "alias" keyword, this is replaced by an extension of the "using" keyword which allow as before to extend the type definition search in package, but also allows to rename classes or packages for the current kmt file.

examples:

using kermeta::standard   // same as before, allows to search the definition in this package

using kermeta::standard::String -> MyString   // TypeDefinition local alias : allows to use MyString as a type definition that will be resolved as kermeta::standard::String

using org::kermeta::language::structure::* -> okls::*   // Package local alias : allow to acces the TypeDefinition in  org::kermeta::language::structure using okls instead

Rationale

Open discussion

Planned evolution