diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-04-16 08:04:56 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-04-16 08:08:23 -0700 |
commit | 81b6ab03a3c0aa7748fa86661e55de9d4ebdf834 (patch) | |
tree | 9dbca9825f7f8b4ab3b775ecced5ed5b2984aa35 /074list.mu | |
parent | 10f49c64703056e1b6bf4730584602a2a51e72df (diff) | |
download | mu-81b6ab03a3c0aa7748fa86661e55de9d4ebdf834.tar.gz |
2839 - get-address purged until layer 75
Diffstat (limited to '074list.mu')
-rw-r--r-- | 074list.mu | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/074list.mu b/074list.mu index d6f43a2c..089533e0 100644 --- a/074list.mu +++ b/074list.mu @@ -12,10 +12,7 @@ def push x:_elem, in:address:shared:list:_elem -> in:address:shared:list:_elem [ local-scope load-ingredients result:address:shared:list:_elem <- new {(list _elem): type} - val:address:_elem <- get-address *result, value:offset - *val <- copy x - next:address:address:shared:list:_elem <- get-address *result, next:offset - *next <- copy in + *result <- merge x, in return result # needed explicitly because we need to replace 'in' with 'result' ] |