This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module type MESSAGE = | |
sig | |
type obj | |
type variant | |
val make : unit -> obj | |
(* encapsulate object in a variant type *) | |
val convert : obj -> variant | |
val print : obj -> unit | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ocamlc x.ml | |
File "x.ml", line 30, characters 16-28: | |
Error: Unbound value Rep.dispatch |