File tree Expand file tree Collapse file tree 2 files changed +15
-26
lines changed Expand file tree Collapse file tree 2 files changed +15
-26
lines changed Original file line number Diff line number Diff line change @@ -459,6 +459,7 @@ int any_tag(int64_t any) {
459
459
return any & ANY_TAG_MASK ;
460
460
}
461
461
462
+ /* to do: need to cycle detection. -Jeremy */
462
463
void print_any (int64_t any ) {
463
464
switch (any_tag (any )) {
464
465
case ANY_TAG_INT :
Original file line number Diff line number Diff line change 1
- (define (hello29999 ) : Any (inject 24 Integer))
2
- (define (world30000 ) : Any (inject 24 Integer))
1
+ (define (hello ) : Any (inject 24 Integer))
2
+ (define (world ) : Any (inject 24 Integer))
3
3
4
- (let ((x30001
5
- (inject
6
- (vector (inject 0 Integer) (inject 0 Integer))
7
- (Vector Any Any))))
8
- (let ((y30002
9
- (inject
10
- (vector-set!
11
- (project x30001 (Vector Any Any))
12
- 0
13
- (
14
- (project (inject hello29999 (-> Any)) (-> Any))))
15
- Void)))
16
- (let ((z30003
17
- (inject
18
- (vector-set!
19
- (project x30001 (Vector Any Any))
20
- 1
21
- (
22
- (project
23
- (inject world30000 (-> Any))
24
- (-> Any))))
25
- Void)))
26
- (let ((a (project x30001 (Vector Any Any))))
27
- (+ (- 6 ) (+ (project (vector-ref a 0 ) Integer) (project (vector-ref a 1 ) Integer)))))))
4
+ (let ([x (inject (vector (inject 0 Integer) (inject 0 Integer))
5
+ (Vector Any Any))])
6
+ (let ([y (inject (vector-set! (project x (Vector Any Any)) 0
7
+ ((project (inject hello (-> Any)) (-> Any))))
8
+ Void)])
9
+ (let ([z (inject (vector-set! (project x (Vector Any Any)) 1
10
+ ((project (inject world (-> Any))
11
+ (-> Any))))
12
+ Void)])
13
+ (let ([a (project x (Vector Any Any))])
14
+ (+ (- 6 ) (+ (project (vector-ref a 0 ) Integer)
15
+ (project (vector-ref a 1 ) Integer)))))))
You can’t perform that action at this time.
0 commit comments