Variable size/Get: Difference between revisions
Content added Content deleted
m (→{{header|Forth}}: fixed </Lang> tag) |
No edit summary |
||
Line 1,368: | Line 1,368: | ||
print(@"$(sizeof(int))\n"); |
print(@"$(sizeof(int))\n"); |
||
}</lang> |
}</lang> |
||
⚫ | |||
<lang>sizeof(i64)</lang> |
|||
{{out}} |
|||
<pre>8</pre> |
|||
⚫ | |||
⚫ | |||
⚫ | 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|Yabasic}}== |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|XPL0}}== |
=={{header|XPL0}}== |
||
Line 1,396: | Line 1,422: | ||
8 |
8 |
||
</pre> |
</pre> |
||
⚫ | |||
⚫ | |||
⚫ | 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}}== |
=={{header|zkl}}== |