13.4.167  unsafe

The standard library unsafe package implements various datastructures and functions which by-pass the usual compiler type-safeness guarantees. By using this api, you can write code just as flaky and core-dump prone as any C program! This functionality is occasionally used in truly time-critical code to avoid some runtime checks.

In general the best advice when tempted to use this module is — don’t!

The unsafe package implements the Unsafe api.

The unsafe package source code is in src/lib/std/src/unsafe/unsafe.pkg. Much of it depends on lower-level functionality implemented in C and assembly.

The above information is manually maintained and may contain errors.


Comments and suggestions to: