Commits

camlspotter  committed 310074a Merge

update

  • Participants
  • Parent commits 3e6783e, e08882e
  • Branches dev

Comments (0)

Files changed (4)

+b0ac4b5b0ead9e4c08e04babec32b39fa09e83d4 v1.1.0
 autoapi.ml : auto.ml module.pl $(addsuffix .idl.in, $(IDLS))
     ./module.pl *.idl.in > $@
 
-api.cmo api.cmi api.cmx: autoapi.cmi
+OCamlGeneratedFiles(autoapi.ml OOApiauto.ml)
 
 api.auto.mli: api.cmi api.ml
 

File js_of_ocaml/opy_of_ocaml.ml

   type 'a readonly_prop = < get : 'a> gen_prop
   type 'a meth
 end
+
+let import_module name = dict (Import.importModule name)#getDict

File js_of_ocaml/testoo.ml

   method capitalize : #o_String -> o_String Js.meth
 end
 
-let import_module_dict name = Js.dict (Import.importModule name)#getDict
-
 let _ =
   Base.initialize ();
 
-  let module_string : module_string Js.t = import_module_dict "string" in (* from string import * *)
+  let module_string : module_string Js.t = import_module "string" in (* from string import * *)
   let lowercase = module_string##lowercase in
   let res = module_string##capitalize( lowercase ) in