diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-11-15 00:37:29 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-11-15 00:37:29 -0800 |
commit | ef96f57ce264c8e0bd98f6e8622d1c1e2eceafb2 (patch) | |
tree | f2113d385fde9c4b9579521402eab5ec9c1f208d /073list.mu | |
parent | 7ecb3374340c02cc2c54abf4a5d4a617f362b4c4 (diff) | |
download | mu-ef96f57ce264c8e0bd98f6e8622d1c1e2eceafb2.tar.gz |
2441 - never miss any specializations
I was failing to specialize calls containing literals. And then I had to deal with whether literals should map to numbers or characters. (Answer: both.) One of the issues that still remains: shape-shifting recipes can't be called with literals for addresses, even if it's 0.
Diffstat (limited to '073list.mu')
-rw-r--r-- | 073list.mu | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/073list.mu b/073list.mu index a1076792..7d8c2297 100644 --- a/073list.mu +++ b/073list.mu @@ -32,18 +32,10 @@ recipe rest in:address:list:_elem -> result:address:list:_elem [ result <- get *in, next:offset ] -recipe force-specialization-list-number [ - 1:address:list:number <- push 2:number, 1:address:list:number - 2:number <- first 1:address:list:number - 1:address:list:number <- rest 1:address:list:number -] - -# todo: automatically specialize code in scenarios scenario list-handling [ run [ 1:address:list:number <- copy 0 - 2:number <- copy 3 - 1:address:list:number <- push 2:number, 1:address:list:number + 1:address:list:number <- push 3, 1:address:list:number 1:address:list:number <- push 4, 1:address:list:number 1:address:list:number <- push 5, 1:address:list:number 2:number <- first 1:address:list:number |