Variable size/Get: Difference between revisions

added Ol
m (→‎{{header|Delphi}}: nicer highlighting)
(added Ol)
Line 880:
# sizeof(Array.init 10 (fun _ -> String.create 20)) ;;
- : int = 61</lang>
 
=={{header|Ol}}==
The 'size' function returns size of allocated memory buffer assigned to variable. For regular objects (that always a references to real object in heap) like vectors and pairs it returns size of object in virtual machine words (the object header not counts). For 'raw' objects (a bitstreams like vm bytecode and ansi strings) in returns size of object in native machine bytes.
 
For values (like small numbers and constants) it returns #false.
 
 
=={{header|ooRexx}}==