|
|
|
|
|
by pjmlp
3444 days ago
|
|
Depends on the specifics of the language. On Active Oberon's case, those pointers are still safe. They can only point to valid memory regions, think of them as weak pointers that can also point to data on the stack or global memory. This in safe code. If the package imports SYSTEM, it becomes an unsafe package, and then just like e.g. Rust's unsafe, the rules are bended a bit and usage with SYSTEM.NEW() SYSTEM.DISPOSE() is allowed. Just like any safe systems programming language, it is up to the programmer to ensure this pointer doesn't escape the unsafe package. |
|