X-Git-Url: https://git.lukelau.me/?p=scheme.git;a=blobdiff_plain;f=abi.md;h=28f81c4152683ee00ae2a3c77daa166fd6f92959;hp=0185ec03acc4803a0bcc45f710d19d2ab23e77e1;hb=f605bff88ce12e5f4384ab308c036350bfa86cb5;hpb=8c2beb7c6589872bd9134e1c825c8a50adb11cc0 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