diff --git a/docs/runtime/access.md b/docs/runtime/access.md new file mode 100644 index 0000000..4a02dc8 --- /dev/null +++ b/docs/runtime/access.md @@ -0,0 +1,21 @@ +--- +icon: material/key +description: Member accessibility levels. +--- +# Accessibility levels + +Access modifier|Description +-:|:- +[`public`]()|Access isn't restricted. +[`friend`]()|Access is limited to the current library or types derived from the containing type. +[`protected`]()|Access is limited to container or types derived from containing type. +[`internal`]()|Access is limited to the current library. +[`family`]()|Access is limited to the container or types derived from the containing type within the current library. +[`private`]()|Access is limited to the container. + +Member always can be accessed from the same container scope. This cannot be changed. + +If no access modifier is presented in a member declaration, `private` modifier is used. + +!!! warning + Modifiers `protected`, `friend`, `family` are not valid on members inside modules or [sealed](inheritance.md#type-sealing) types. \ No newline at end of file diff --git a/docs/runtime/inheritance.md b/docs/runtime/inheritance.md new file mode 100644 index 0000000..a9df4ba --- /dev/null +++ b/docs/runtime/inheritance.md @@ -0,0 +1,12 @@ +--- +icon: material/graph +description: Types inheritance, virtual methods, abstract types and sealing. +--- +# Inheritance + +## Type sealing + +!!! warning + + Site still in developing... + Please wait \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 419c6d6..f7bbb9c 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -135,6 +135,8 @@ extra: nav: - index.md - Runtime: + - runtime/access.md + - runtime/inheritance.md - Bytecodes: - runtime/bytecode/nope.md - runtime/bytecode/break.md