Variable size/Get: Difference between revisions

Added Wren
m (→‎{{header|Raku}}: Fix comments: Perl 6 --> Raku)
(Added Wren)
Line 1,362:
8
</pre>
 
=={{header|Wren}}==
In Wren all variables have a size of 8 bytes though there is a larger, slower representation which is used for debugging the virtual machine. Consequently, no ''sizeof'' function (or similar) is needed.
 
Numbers, booleans and the special value ''null'' are stored directly within the variable's storage location using a technique known as ''NaN tagging'' and are therefore unboxed. For everything else (strings, class instances, lists etc.) the variable's storage location stores a pointer to where the actual data resides on the heap.
 
=={{header|zkl}}==
9,485

edits