From: Luke Lau Date: Tue, 30 Jul 2019 21:25:15 +0000 (+0100) Subject: Merge branch 'master' of lukelau.me:/srv/git/scheme X-Git-Url: https://git.lukelau.me/?p=scheme.git;a=commitdiff_plain;h=ab0b66e68a85e8e71442ee70a81c16d04e66145d;hp=556da1eb404e9b6c132cd075d7666de4c5b904d2 Merge branch 'master' of lukelau.me:/srv/git/scheme --- diff --git a/abi.md b/abi.md index eafb174..c2ff165 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