Skip to content

Commit 728a04a

Browse files
committed
2 parents 6f871d7 + 2d0f118 commit 728a04a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

runtime.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ int any_tag(int64_t any) {
459459
return any & ANY_TAG_MASK;
460460
}
461461

462+
/* to do: need to cycle detection. -Jeremy */
462463
void print_any(int64_t any) {
463464
switch (any_tag(any)) {
464465
case ANY_TAG_INT:

tests/s6_9.rkt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
(define (world) : Any (inject 42 Integer))
32

43
; Allocate a vector of 1 any, initialized with an injected 0, and then inject it
@@ -11,7 +10,6 @@
1110
(let ((a (project x (Vector Any))))
1211
(project (vector-ref a 0) Integer))))
1312

14-
1513
;; ;; Works
1614

1715
; Allocate a vector of 1 any, initialized with an injected 0, and then inject it
@@ -45,3 +43,4 @@
4543
;; (let ([y (vector-set! (project x (Vector Any)) 0 (inject (world) Integer))])
4644
;; (let ((a (project x (Vector Any))))
4745
;; (project (vector-ref a 0) Integer))))
46+

0 commit comments

Comments
 (0)