Jump to content

Memory allocation: Difference between revisions

m
Fix Perl 6 -> Raku in comments
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
m (Fix Perl 6 -> Raku in comments)
Line 1,281:
=={{header|Raku}}==
(formerly Perl 6)
 
Like Perl 5, Perl 6Raku is intended to run largely stackless, so all allocations are really on the heap, including activation records. Allocations are managed automatically. It is easy enough to allocate a memory buffer of a particular size however, if you really need it:
<lang perl6>my $buffer = Buf.new(0 xx 1024);</lang>
 
10,333

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.