A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
1
Task/Memory-allocation/Factor/memory-allocation-1.factor
Normal file
1
Task/Memory-allocation/Factor/memory-allocation-1.factor
Normal file
|
|
@ -0,0 +1 @@
|
|||
2000 malloc (...do stuff..) free
|
||||
6
Task/Memory-allocation/Factor/memory-allocation-2.factor
Normal file
6
Task/Memory-allocation/Factor/memory-allocation-2.factor
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
STRUCT: foo { a int } { b foo* } ;
|
||||
|
||||
[
|
||||
foo malloc-struct &free ! gets freed at end of the current with-destructors scope
|
||||
! do stuff
|
||||
] with-destructors
|
||||
Loading…
Add table
Add a link
Reference in a new issue