Memory allocation: Difference between revisions

m
→‎{{header|REXX}}: added wording.
(add rust solution)
m (→‎{{header|REXX}}: added wording.)
Line 1,296:
There is no explicit memory allocation in the REXX language,   variables are allocated as they are assigned   (or re-assigned).
<br>Most REXX interpreters will obtain a chunk (block) of free storage, and then allocate storage out of that pool if possible, if not, obtain more storage.
<br>One particular implementation of REXX has predefined and limited amount of free storage.
<lang rexx>Axtec_god.3='Quetzalcoatl ("feathered serpent"), god of learning, civilization, regeneration, wind and storms'</lang>
There is no explicit way to de-allocate memory, but there is a DROP statement that "un-defines" a REXX variable and it's memory is then free to be used for other variables, provided that free memory isn't too fragmented.