Skip to content

Commit

Permalink
Add new pages
Browse files Browse the repository at this point in the history
  • Loading branch information
NiTiSon committed Sep 27, 2024
1 parent 9298d1c commit 830dd0c
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/runtime/access.md
Original file line number Diff line number Diff line change
@@ -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.
12 changes: 12 additions & 0 deletions docs/runtime/inheritance.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ extra:
nav:
- index.md
- Runtime:
- runtime/access.md
- runtime/inheritance.md
- Bytecodes:
- runtime/bytecode/nope.md
- runtime/bytecode/break.md
Expand Down

0 comments on commit 830dd0c

Please sign in to comment.