summaryrefslogtreecommitdiff
path: root/projects/12/Array.jack
diff options
context:
space:
mode:
Diffstat (limited to 'projects/12/Array.jack')
-rw-r--r--projects/12/Array.jack2
1 files changed, 2 insertions, 0 deletions
diff --git a/projects/12/Array.jack b/projects/12/Array.jack
index ee31129..c712b69 100644
--- a/projects/12/Array.jack
+++ b/projects/12/Array.jack
@@ -15,9 +15,11 @@ class Array {
/** Constructs a new Array of the given size. */
function Array new(int size) {
+ return Memory.alloc(size);
}
/** Disposes this array. */
method void dispose() {
+ return Memory.deAlloc(this);
}
}