From f605bff88ce12e5f4384ab308c036350bfa86cb5 Mon Sep 17 00:00:00 2001 From: Luke Lau Date: Tue, 30 Jul 2019 17:14:56 +0100 Subject: [PATCH] Add notes on ownership --- abi.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/abi.md b/abi.md index 0185ec0..28f81c4 100644 --- a/abi.md +++ b/abi.md @@ -11,6 +11,15 @@ when allocating, use first free block, move up free pointer when freeing, do ??? +# ownership + +``` +(let ([s "hello"]) <- s should be a linear string + (mkpair + (lambda () (print s)) <- two references to s? + (lambda () (print (reverse s))))) +``` + # closures * lambda: actual function containing the code -- 2.30.2