manuallyInitVariable (value --)value: Value or Ref whose designated object is initialized.manuallyInitVariable is a designated-storage initialization builtin. It initializes a value in existing storage. Allocation and storage selection are separate operations. For an In-place local or field, NAME or .NAME and @NAME or .@NAME all designate the same storage for manual initialization.
value is a mutable or immutable Ref, the builtin initializes the value in the referenced storage."String" use
"memory.mplMalloc" use
Tracer: {
value: 0;
INIT: [
("init\n") printList
42 !value
];
DIE: [
("die\n") printList
];
};
{} 0 {} [
slot: Tracer storageSize mplMalloc @Tracer addressToReference;
@slot manuallyInitVariable
("-- first -- " slot.value "\n") printList
slot manuallyDestroyVariable
@slot manuallyInitVariable
("-- second -- " slot.value "\n") printList
slot manuallyDestroyVariable
0
] "main" exportFunction
init
-- first -- 42
die
init
-- second -- 42
die
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.storageAddress builtin (value -- address) Current stack-value storage query; known NIL Ref, Text, and Code values produce 0nx.storageSize builtin (schema -- size) Known Natx storage size of the dereferenced schema.