Memory allocation: Difference between revisions

no edit summary
(Omit from Lily (no manual memory management exists))
No edit summary
Line 1,097:
Any variables (that are non-exposed) which are defined (allocated) in a procedure/subroutine/function will be un-allocated at the termination (completion, when it RETURNS or EXITs) of the procedure/subroutine/function.
<br><br>
 
=={{header|Ring}}==
<lang ring>
cVar = " " # create variable contains string of 5 bytes
cVar = NULL # destory the 5 bytes string !
</lang>
 
=={{header|Ruby}}==