From: Luke Lau Date: Tue, 30 Jul 2019 16:14:56 +0000 (+0100) Subject: Add notes on ownership X-Git-Url: https://git.lukelau.me/?p=scheme.git;a=commitdiff_plain;h=f605bff88ce12e5f4384ab308c036350bfa86cb5 Add notes on ownership --- 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