storageAddress (value -- address)value: Value whose storage address is queried.address: Storage address as known or unknown Natx.storageAddress is a current stack-value storage query. It returns the storage address of one non-Meta value as known or unknown Natx. The result depends on the current stack value, including known nilness.
In-place values, non-NIL Ref values, non-NIL Code values, and non-NIL Text values produce an unknown Natx result.NIL Text, the reported address is the address of the referenced UTF-8 storage.NIL Ref, Text, and Code values produce the known zero address 0nx.{} () {} [
value: 7;
text: "hello";
code: {} () {} codeRef;
"-- In-place value and Ref --" printCompilerMessage
value storageAddress printStack _:;
@value storageAddress printStack _:;
"-- text and known NIL cases --" printCompilerMessage
text storageAddress printStack _:;
0nx value addressToReference storageAddress printStack _:;
@code storageAddress printStack _:;
] "main" exportFunction
-- In-place value and Ref --
Natx
Natx
-- text and known NIL cases --
Natx
0nx
0nx
addressToReference builtin (address modelValue -- reconstructedValue) Typed reconstruction from a numeric storage address. Ref-like model values keep their schema, and direct non-Ref-like model values produce Ref results.alignment builtin (schema -- alignment) Known Natx alignment requirement of the dereferenced schema.manuallyDestroyVariable builtin (value --) Manually destroys the designated value in place without freeing the storage.manuallyInitVariable builtin (value --) Manually initializes the designated value in existing storage without allocating the storage.storageSize builtin (schema -- size) Known Natx storage size of the dereferenced schema.