projects
/
scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8c2beb7
)
Add notes on ownership
author
Luke Lau
<luke_lau@icloud.com>
Tue, 30 Jul 2019 16:14:56 +0000
(17:14 +0100)
committer
Luke Lau
<luke_lau@icloud.com>
Tue, 30 Jul 2019 16:14:56 +0000
(17:14 +0100)
abi.md
patch
|
blob
|
history
diff --git
a/abi.md
b/abi.md
index 0185ec03acc4803a0bcc45f710d19d2ab23e77e1..28f81c4152683ee00ae2a3c77daa166fd6f92959 100644
(file)
--- 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