Anonymous user
Memory allocation: Difference between revisions
→{{header|Ruby}}: Add Ruby, show Class#allocate.
(→{{header|MATLAB}} / {{header|Octave}}: memory allocation) |
(→{{header|Ruby}}: Add Ruby, show Class#allocate.) |
||
Line 714:
<lang rexx>drop xyz NamesRoster j k m caves names.</lang>
=={{header|Ruby}}==
Class#allocate explicitly allocates memory for a new object, inside the [[garbage collection|garbage-collected heap]]. Class#allocate never calls #initialize.
<lang ruby>class Thingamajig
def initialize
fail 'not yet implemented'
end
end
t = Thingamajig.allocate</lang>
=={{header|SNOBOL4}}==
|