cs164_lab3 issueshttps://git.recolic.net/recolic-hust/cs164_lab3/-/issues2019-04-28T04:38:04Zhttps://git.recolic.net/recolic-hust/cs164_lab3/-/issues/1Most object should be on heap, using function `alloc`.2019-04-28T04:38:04ZRecolicgitlab@me.recolic.netMost object should be on heap, using function `alloc`.consider expression `return 1+2`. `INT(1)` is on stack and `result_of(1+2)` is on stack. However, the returned reference(pointer) is already invalidated after return...
So, we should either deep-copy the return value, or put everything ...consider expression `return 1+2`. `INT(1)` is on stack and `result_of(1+2)` is on stack. However, the returned reference(pointer) is already invalidated after return...
So, we should either deep-copy the return value, or put everything on heap (with `alloc`).