summaryrefslogtreecommitdiff
path: root/std/mem.zc
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-19 12:53:47 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-19 12:53:47 +0000
commit639c6ac65a1bd44b2ba0725fe7016a4920bf0950 (patch)
tree47703f960633d3d4580022583134c28b96d5f36e /std/mem.zc
parent526b7748cafcb5a00f8e30df88661f6059d79843 (diff)
Iterables and iterators :D
Diffstat (limited to 'std/mem.zc')
-rw-r--r--std/mem.zc4
1 files changed, 4 insertions, 0 deletions
diff --git a/std/mem.zc b/std/mem.zc
index 45bc208..5f4de36 100644
--- a/std/mem.zc
+++ b/std/mem.zc
@@ -11,6 +11,10 @@ fn alloc_n<T>(n: usize) -> T* {
return (T*)malloc(sizeof(T) * n);
}
+trait Drop {
+ fn drop(self);
+}
+
struct Box<T> {
ptr: T*;
}