Section 43
Want more of a challenge? View in
iconic
form (
experimental
)
# JAVA check that automatic conversion is workable
[
hear
]
(define test1
(COS_JavaTest new)
);
[
hear
]
(=
(test1 mult 15 10)
150);
[
hear
]
(=
(test1 addmult 4 15 10)
154);
[
hear
]
(begin
(test1 set 87)
(=
(test1 get)
87)
);
[
hear
]
(=
(test1 fact 0)
1);
[
hear
]
(=
(test1 fact 1)
1);
[
hear
]
(=
(test1 fact 5)
120);
# Yay! testing says this works.
# So structure for bytecode interpretation is in place.
# Very few opcodes actually implemented yet though.