Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ─( 12:17:42 )─< command 1 >──────────────────────────────────────────────────────────{ counter: 0 }─
- utop # class test (n:int) = object
- val num = n
- method num = num
- end;;
- class test : int -> object val num : int method num : int end
- ─( 12:18:57 )─< command 7 >──────────────────────────────────────────────────────────{ counter: 0 }─
- utop # let a = new test 1;;
- val a : test = <obj>
- ─( 12:19:00 )─< command 8 >──────────────────────────────────────────────────────────{ counter: 0 }─
- utop # let b = new test 1;;
- val b : test = <obj>
- ─( 12:19:10 )─< command 9 >──────────────────────────────────────────────────────────{ counter: 0 }─
- utop # a = b;;
- - : bool = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement