Warning the current version is 0.2a06 is just an upgrade
for new camlp4 features.
The main idea is to check the "subinheritance" relation during class declarations.
This extension introduces seven new syntatic constructions :
"subinherit c ..." |
"of" | "instanceof" | "instanceof and subtype" | |
Syntax | expr of c | expr instanceof c | expr subinstanceof c |
Typing | bool | bool | bool |
Evaluation | true or false | true or false | true or false |
"cast" | "upcast" | "downcast" | |
Syntax | cast expr to c2 | upcast expr from c1 to c2 | downcast expr from c1 to c2 |
Typing | c2 | c2 | c2 |
Evaluation | expr value | expr value | expr value |
or cocaml-0.2a04.tar using O'Caml 3.04
or cocaml-0.2a.tar using O'Caml 3.02 and camlp4 3.02