git @ Cat's Eye Technologies Xoomonk / 07e49b5
Remove weird [a=*] thing; assigned variables are 0 like it said. catseye 9 years ago
1 changed file(s) with 7 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
168168 | d := c
169169 | }
170170 | print a
171 = [c=?,d=*]
171 = [c=?,d=0]
172
173 Note that, consistent with variables that are assigned to a block initially
174 getting the value 0, the variable `d` in the above example is shown to be
175 0 when the block is still unsaturated.
172176
173177 An unsaturated store behaves similarly to a saturated store in certain
174178 respects. In particular, unsaturated stores can be updated. If doing
184188 | print a
185189 | a.c := 7
186190 | print a
187 = [c=?,d=*]
191 = [c=?,d=0]
188192 = executing block
189193 = [c=7,d=7]
190194
291295 | $add.y := 5
292296 | print $add.result
293297 | print $add
294 = [x=?,y=?,result=*]
298 = [x=?,y=?,result=0]
295299 = 8
296300 = [x=3,y=5,result=8]
297301