From fda4f09181db880dc5199d191161d75d8b9ad2b4 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 19 Mar 2016 09:14:25 -0700 Subject: 2795 - quick hacks for Caleb It turns out that my extensible stash doesn't yet work well in all situations. If you try to stash an array, you end up trying to create an array local that's not statically sized -- a no-no. Bah, just throw it all out. --- 074list.mu | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to '074list.mu') diff --git a/074list.mu b/074list.mu index 6cb7a9a1..d6f43a2c 100644 --- a/074list.mu +++ b/074list.mu @@ -102,27 +102,3 @@ def to-buffer in:address:shared:list:_elem, buf:address:shared:buffer -> buf:add # past recursion depth; insert ellipses and stop append buf, [...] ] - -scenario stash-on-list-converts-to-text [ - run [ - x:address:shared:list:number <- push 4, 0 - x <- push 5, x - x <- push 6, x - stash [foo foo], x - ] - trace-should-contain [ - app: foo foo 6 -> 5 -> 4 - ] -] - -scenario stash-handles-list-with-cycle [ - run [ - x:address:shared:list:number <- push 4, 0 - y:address:address:shared:list:number <- get-address *x, next:offset - *y <- copy x - stash [foo foo], x - ] - trace-should-contain [ - app: foo foo 4 -> 4 -> 4 -> 4 -> 4 -> 4 -> 4 -> ... - ] -] -- cgit 1.4.1-2-gfad0 about/?h=main'>about summary refs log tree commit diff stats
path: root/018type_abbreviations.cc
blob: 1e48763354ba2bb4942b4283a0f5882c9a972c2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196