The site sections are under development.
The materials may be incomplete or contain errors. The site content will be synchronized with the implementation in the next release, while the current version (0.6.0) is intended for syntax prototyping and for creating the playground.
Stack overflow protection (stack check)
TrustLang has built-in stack overflow protection. Before calling a protected function, the free space on the thread stack is checked, and if it is insufficient — instead of abnormal termination of the whole application (segmentation fault), a program exception stack_overflow is created, which can be caught and handled inside the application, after which program execution continues.
A detailed description of the implementation and usage methods will be here.
For now you can look at usage examples: recursive computation of Fibonacci numbers and recursive primality check